Commit 1e1761d1 authored by Ian Hickson's avatar Ian Hickson

Merge pull request #800 from Hixie/pointer-bugs

Fix pointer up/move/cancel listeners
parents 5f5245dd 18beb4b4
......@@ -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