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