Commit 0c9333cc authored by Jason Simmons's avatar Jason Simmons

Change flutter_sprites to use the current PointerEvent.position API

parent e857bc6f
......@@ -223,7 +223,7 @@ class SpriteBox extends RenderBox {
// Check if this event should be dispatched
if (node.handleMultiplePointers || event.pointer == node._handlingPointer) {
// Dispatch event
bool consumedEvent = node.handleEvent(new SpriteBoxEvent(new Point(event.x, event.y), event.runtimeType, event.pointer));
bool consumedEvent = node.handleEvent(new SpriteBoxEvent(event.position, event.runtimeType, event.pointer));
if (consumedEvent == null || consumedEvent)
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment