Check for hover motion events in AndroidTouchProcessor (flutter/engine#8376)

Fixes https://github.com/flutter/flutter/issues/30122
This commit is contained in:
Jason Simmons
2019-03-29 15:42:11 -07:00
committed by GitHub
parent 8d8c635813
commit ec6b6a1317

View File

@@ -277,6 +277,9 @@ public class AndroidTouchProcessor {
if (maskedAction == MotionEvent.ACTION_MOVE) {
return PointerChange.MOVE;
}
if (maskedAction == MotionEvent.ACTION_HOVER_MOVE) {
return PointerChange.HOVER;
}
if (maskedAction == MotionEvent.ACTION_CANCEL) {
return PointerChange.CANCEL;
}