mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 721076 - Set correct prevent panning mode on touchdown. r=kats
This commit is contained in:
parent
0f241fee7d
commit
cbe4570b49
@ -384,11 +384,13 @@ public class LayerController {
|
||||
public boolean onTouchEvent(MotionEvent event) {
|
||||
int action = event.getAction();
|
||||
PointF point = new PointF(event.getX(), event.getY());
|
||||
|
||||
if ((action & MotionEvent.ACTION_MASK) == MotionEvent.ACTION_DOWN) {
|
||||
mView.clearEventQueue();
|
||||
initialTouchLocation = point;
|
||||
allowDefaultActions = !mWaitForTouchListeners;
|
||||
post(new Runnable() {
|
||||
public void run() {
|
||||
mView.clearEventQueue();
|
||||
preventPanning(mWaitForTouchListeners);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user