mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 788379 - Cancel the tap highlight if a touch event block is prevent-defaulted. r=wesj
This commit is contained in:
parent
2d6b93cf59
commit
ae8cc5442f
@ -457,6 +457,8 @@ public class PanZoomController
|
||||
}
|
||||
|
||||
private boolean onTouchCancel(MotionEvent event) {
|
||||
cancelTouch();
|
||||
|
||||
if (mState == PanZoomState.WAITING_LISTENERS) {
|
||||
// we might get a cancel event from the TouchEventHandler while in the
|
||||
// WAITING_LISTENERS state if the touch listeners prevent-default the
|
||||
@ -467,7 +469,6 @@ public class PanZoomController
|
||||
return false;
|
||||
}
|
||||
|
||||
cancelTouch();
|
||||
// ensure we snap back if we're overscrolled
|
||||
bounce();
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user