Commit aabae3af authored by Hixie's avatar Hixie

Ignore hover events.

parent 1d8bea0a
...@@ -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