| Index: sky/sdk/lib/framework/rendering/box.dart
|
| diff --git a/sky/sdk/lib/framework/rendering/box.dart b/sky/sdk/lib/framework/rendering/box.dart
|
| index ddbd78e63c41f7a5e9153a53d83fe5d6b5ef3c8e..8eda5c04111bda6d0338d7b3daa20aa62eed9e0e 100644
|
| --- a/sky/sdk/lib/framework/rendering/box.dart
|
| +++ b/sky/sdk/lib/framework/rendering/box.dart
|
| @@ -165,6 +165,13 @@ class BoxConstraints {
|
| String toString() => "BoxConstraints($minWidth<=w<$maxWidth, $minHeight<=h<$maxHeight)";
|
| }
|
|
|
| +class BoxHitTestData extends HitTestData {
|
| + final Point localPosition;
|
| +
|
| + BoxHitTestData(RenderBox entry, this.localPosition)
|
| + : super(entry);
|
| +}
|
| +
|
| class BoxParentData extends ParentData {
|
| Point _position = Point.origin;
|
| Point get position => _position;
|
| @@ -225,7 +232,7 @@ abstract class RenderBox extends RenderObject {
|
|
|
| bool hitTest(HitTestResult result, { Point position }) {
|
| hitTestChildren(result, position: position);
|
| - result.add(this);
|
| + result.add(new BoxHitTestData(this, position));
|
| return true;
|
| }
|
| void hitTestChildren(HitTestResult result, { Point position }) { }
|
| @@ -1073,7 +1080,7 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin<RenderBox>
|
| if (childBounds.contains(position))
|
| child.hitTest(result, position: position);
|
| }
|
| - result.add(this);
|
| + result.add(new HitTestData(this));
|
| return true;
|
| }
|
|
|
|
|