Skip to content

Fix system gesture triggering when editing quad corners.#194

Merged
pynicolas merged 1 commit into
pynicolas:mainfrom
PhilLab:ph/fix_quad_editing_gesture_trigger
Jun 7, 2026
Merged

Fix system gesture triggering when editing quad corners.#194
pynicolas merged 1 commit into
pynicolas:mainfrom
PhilLab:ph/fix_quad_editing_gesture_trigger

Conversation

@PhilLab

@PhilLab PhilLab commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

On devices without a back button (e.g. Pixel10), dragging corners when close to the screen borders triggered the system back gesture.

QuadOverlay.kt

Adding exclusion areas for each of the corner handles fixes this. It was not possible to exclude the whole image area, as Android seems to silently limit the area of allowed exclusion.

CropScreen.kt

The mandatory system gestures like the home or quick-switch gesture cannot be excluded via areas. The only solution here is to introduce a bottom padding which moves the image view upwards, out of the gesture area.

Both changes are no-ops for devices without system gestures, so no change there.

Closes #193

On devices without a back button (e.g. Pixel10), dragging corners when
close to the screen borders triggered the system back gesture.

Adding exclusion areas for each of the corner handles fixes this.
It was not possible to exclude the whole image area, as Android seems to
silently limit the area of allowed exclusion.

The mandatory system gestures like the home or quick-switch gesture cannot
be excluded via areas. The only solution here is to introduce a bottom
padding which moves the image view upwards, out of the gesture area.

Both changes are no-ops for devices without system gestures, so no change
there.

Closes pynicolas#193
@pynicolas pynicolas merged commit 6ad21ee into pynicolas:main Jun 7, 2026
1 check passed
@pynicolas

Copy link
Copy Markdown
Owner

Thanks a lot for this new PR!
I tested it and it works well. Good improvement!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manual cropping: dragging close to screen borders triggers system gestures

2 participants