mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Merge "Handle SystemGestureRegion in TaskbarDragLayer" into main
This commit is contained in:
@@ -146,6 +146,15 @@ public class TaskbarDragLayer extends BaseDragLayer<TaskbarActivityContext> {
|
||||
onDestroy(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isEventWithinSystemGestureRegion(MotionEvent ev) {
|
||||
final float x = ev.getX();
|
||||
final float y = ev.getY();
|
||||
|
||||
return x >= mSystemGestureRegion.left && x < getWidth() - mSystemGestureRegion.right
|
||||
&& y >= mSystemGestureRegion.top;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean canFindActiveController() {
|
||||
// Unlike super class, we want to be able to find controllers when touches occur in the
|
||||
|
||||
Reference in New Issue
Block a user