Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab view opens unintentionally with gesture navigation #1899

Open
5 tasks done
theFireProject opened this issue Mar 10, 2025 · 1 comment
Open
5 tasks done

Tab view opens unintentionally with gesture navigation #1899

theFireProject opened this issue Mar 10, 2025 · 1 comment

Comments

@theFireProject
Copy link

theFireProject commented Mar 10, 2025

  Preliminary checklist  5/5
  • I have read the README.
  • I have searched the existing issues for my problem. This is a new ticket, NOT a duplicate or related to another open issue.
  • I have read the FAQs.
  • I have updated Cromite to the latest version. The bug is reproducible on this latest version.
  • This is a bug report about the Cromite browser; not the website nor F-Droid nor anything else.
Details
Cromite version 134.0.6998.39
Device architecture arm64-v8a
Platform version Android 13
Android Device model Samsung Galaxy S20+ (SM-G986U1)
Is the device rooted? No
Changed flags See below
Is this bug happening in an incognito tab? No
Is this bug caused by the adblocker? No
Is this bug a crash? No
Can the bug be reproduced with corresponding Chromium version? No
Are you sure? Yes

Flags:

Describe the bug

I have gesture navigation enabled on my device. In order to go to my home screen, I have to swipe up from the bottom of the screen.

This conflicts with the swipe up gesture on Cromite's toolbar when the toolbar is at the bottom of the screen.

Every time I go to my home screen, the tab view opens unintentionally.

Recording.mp4

Steps to reproduce the bug

  1. Prerequisites:
    • Cromite
      • Bottom toolbar is enabled
      • Toolbar swipe up gesture is enabled
    • Android
      • Gesture navigation is enabled
  2. Open Cromite
  3. Open a tab
  4. Go to your device's home screen by swiping up from the bottom of the screen when gesture navigation is enabled

Cromite will open the tab view before it's getting minimized.

Expected behavior

The home screen gesture of my device should be prioritized and it shouldn't trigger Cromite's toolbar gestures.

@theFireProject
Copy link
Author

theFireProject commented Mar 10, 2025

Do you think it's possible to prevent Cromite's toolbar gesture from being triggered while using the home gesture?

I'm not an Android developer but I came across this article: Ensure compatibility with gesture navigation - Conflicts with home or quick-switch gestures

Android 10 introduces the WindowInsets.getMandatorySystemGestureInsets() API, which informs apps of the touch recognition thresholds.

If I understand correctly, it's possible for an app to know the exact size of the area in which the home screen gesture can be triggered. It should be the same as shown here in the settings:

I think one way to fix this problem would be to disable toolbar gestures in that area, so they don't activate when someone uses the home gesture.

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

No branches or pull requests

1 participant