Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a5abff5 authored by Longbo Wei's avatar Longbo Wei Committed by Android (Google) Code Review
Browse files

Merge "autoclick: Prevent reverting to left click when panel is hovered" into main

parents 59c9e173 70d75ade
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -915,8 +915,9 @@ public class AutoclickController extends BaseEventStreamTransformation {
            boolean inScrollMode =
                    mActiveClickType == AUTOCLICK_TYPE_SCROLL && mAutoclickScrollPanel != null
                            && mAutoclickScrollPanel.isVisible();
            // Only reset if the user is not dragging and is not in scroll mode.
            if (!stillDragging && !inScrollMode) {
            // Reset only if the user is not dragging, not in scroll mode, and not hovering over
            // the panel.
            if (!stillDragging && !inScrollMode && !mHoveredState) {
                resetSelectedClickTypeIfNecessary();
            }
        }