input mouse mm: Allow scroll movement and edge scrolling on tap drag scenarios
This enables the code path to allow scroll movement and edge scrolling on tap drag scenarios by checking for any button event instead of using the previous button state. Change-Id: I99914bfea0f5b257646cc8247b5bcaffa51ed49e Reviewed-on: https://review.haiku-os.org/c/haiku/+/9917 Reviewed-by: Adrien Destugues <[email protected]> Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
e2685c735f
commit
ad8a550efe
@@ -603,9 +603,8 @@ TouchpadMovement::_CheckScrollingToMovement(const touchpad_movement *event,
|
||||
bool isSideScrollingV = false;
|
||||
bool isSideScrollingH = false;
|
||||
|
||||
// if a button is pressed don't allow to scroll, we likely be in a drag
|
||||
// action
|
||||
if (fButtonsState != 0)
|
||||
// if a button is pressed don't allow to scroll
|
||||
if (event->buttons != 0)
|
||||
return false;
|
||||
|
||||
if ((fSpecs.areaEndX - fAreaWidth * fSettings.scroll_rightrange
|
||||
|
||||
Reference in New Issue
Block a user