mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 07:46:55 +00:00
Revert "Prevent double touch inputs in the BaseDragLayer"
This reverts commit 68fc44ffad.
Reason for revert: Wrong handling of events
Change-Id: Ic34916123ed6c4ba33f629549dda2cdbc890b413
This commit is contained in:
@@ -273,12 +273,6 @@ public abstract class BaseDragLayer<T extends Context & ActivityContext>
|
||||
|
||||
@Override
|
||||
public boolean dispatchTouchEvent(MotionEvent ev) {
|
||||
if (ev.getActionIndex() > 0) {
|
||||
// This means there is multiple touch inputs, ignore it, we could also cancel the
|
||||
// previous touch but the user might cancel the drag by accident.
|
||||
return true;
|
||||
}
|
||||
|
||||
switch (ev.getAction()) {
|
||||
case ACTION_DOWN: {
|
||||
if ((mTouchDispatchState & TOUCH_DISPATCHING_TO_VIEW_IN_PROGRESS) != 0) {
|
||||
|
||||
Reference in New Issue
Block a user