From aabae3af82a6bcc347ca5ea7155eb8eb234e079b Mon Sep 17 00:00:00 2001 From: Hixie Date: Mon, 7 Dec 2015 10:15:11 -0800 Subject: [PATCH] Ignore hover events. --- packages/flutter/lib/src/rendering/binding.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/flutter/lib/src/rendering/binding.dart b/packages/flutter/lib/src/rendering/binding.dart index 158ac28d2f..44e0609185 100644 --- a/packages/flutter/lib/src/rendering/binding.dart +++ b/packages/flutter/lib/src/rendering/binding.dart @@ -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;