Ink splashes should start at the touch point
Previously, they always started at the center of the RenderInkWell. Now we remember the local coordinates we computed during the hit test and provide that information when handling the event. R=ianh@google.com Review URL: https://codereview.chromium.org/1180553002.
This commit is contained in:
@@ -40,7 +40,7 @@ class RenderSolidColor extends RenderDecoratedBox {
|
||||
size = constraints.constrain(desiredSize);
|
||||
}
|
||||
|
||||
void handleEvent(sky.Event event) {
|
||||
void handleEvent(sky.Event event, BoxHitTestEntry entry) {
|
||||
if (event.type == 'pointerdown')
|
||||
decoration = new BoxDecoration(backgroundColor: const sky.Color(0xFFFF0000));
|
||||
else if (event.type == 'pointerup')
|
||||
|
||||
Reference in New Issue
Block a user