From 3845545456b70202ab63605a0f5a3676a09798a0 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Wed, 10 Jun 2015 13:55:20 -0700 Subject: [PATCH] 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. --- engine/src/flutter/tests/raw/render_flex.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/tests/raw/render_flex.dart b/engine/src/flutter/tests/raw/render_flex.dart index 29adc86583..49baa219a5 100644 --- a/engine/src/flutter/tests/raw/render_flex.dart +++ b/engine/src/flutter/tests/raw/render_flex.dart @@ -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')