Commit d6f61e44 authored by Ian Hickson's avatar Ian Hickson

Merge pull request #784 from Hixie/pointer-move-hack

Ignore hover events.
parents 1e683b2f aabae3af
...@@ -97,11 +97,12 @@ class _PointerEventConverter { ...@@ -97,11 +97,12 @@ class _PointerEventConverter {
break; break;
case PointerType.MOVE: case PointerType.MOVE:
_PointerState state = _pointers[datum.pointer]; _PointerState state = _pointers[datum.pointer];
// If the service starts supporting hover pointers, then it must // If the service starts supporting hover pointers, then it must also
// also start sending us ADDED and REMOVED data points. // start sending us ADDED and REMOVED data points. In the meantime, we
// In the meantime, we only support "down" moves. // only support "down" moves, and ignore spurious moves.
// See also: https://github.com/flutter/flutter/issues/720 // See also: https://github.com/flutter/flutter/issues/720
assert(state != null); if (state != null)
break;
assert(state.down); assert(state.down);
Offset offset = position - state.lastPosition; Offset offset = position - state.lastPosition;
state.lastPosition = position; state.lastPosition = position;
......
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