Commit 18beb4b4 authored by Hixie's avatar Hixie

Fix pointer up/move/cancel listeners

Fallout from the pointer refactor.
parent 5f5245dd
......@@ -1123,11 +1123,11 @@ class RenderPointerListener extends RenderProxyBox {
void handleEvent(PointerEvent event, HitTestEntry entry) {
if (onPointerDown != null && event is PointerDownEvent)
return onPointerDown(event);
if (onPointerMove != null && event == PointerMoveEvent)
if (onPointerMove != null && event is PointerMoveEvent)
return onPointerMove(event);
if (onPointerUp != null && event == PointerUpEvent)
if (onPointerUp != null && event is PointerUpEvent)
return onPointerUp(event);
if (onPointerCancel != null && event == PointerCancelEvent)
if (onPointerCancel != null && event is PointerCancelEvent)
return onPointerCancel(event);
}
......
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