Skip to content

Commit aabae3a

Browse files
committed
Ignore hover events.
1 parent 1d8bea0 commit aabae3a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/flutter/lib/src/rendering/binding.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,12 @@ class _PointerEventConverter {
9797
break;
9898
case PointerType.MOVE:
9999
_PointerState state = _pointers[datum.pointer];
100-
// If the service starts supporting hover pointers, then it must
101-
// also start sending us ADDED and REMOVED data points.
102-
// In the meantime, we only support "down" moves.
100+
// If the service starts supporting hover pointers, then it must also
101+
// start sending us ADDED and REMOVED data points. In the meantime, we
102+
// only support "down" moves, and ignore spurious moves.
103103
// See also: https://github.com/flutter/flutter/issues/720
104-
assert(state != null);
104+
if (state != null)
105+
break;
105106
assert(state.down);
106107
Offset offset = position - state.lastPosition;
107108
state.lastPosition = position;

0 commit comments

Comments
 (0)