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

Only apply overscroll-behavior: none to Rill Developer #3639

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

ericpgreen2
Copy link
Contributor

@ericpgreen2 ericpgreen2 commented Dec 6, 2023

overscroll-behavior: none is CSS that prevents trackpad gesture navigation (given it's enabled at your OS level). Previously, this CSS lived in our app.css file, which applies to both Rill Cloud and Rill Developer. This PR move the CSS so that it only applies to Rill Developer.

Code editors, or at least vscode.dev, tend to restrict this sort of trackpad navigation so that horizontally scrolling your code file does not accidentally trigger navigation.

Closes #3574

@ericpgreen2 ericpgreen2 added the Team:Applications Applications Working Group label Dec 6, 2023
@ericpgreen2 ericpgreen2 self-assigned this Dec 6, 2023
@ericpgreen2 ericpgreen2 added Team:Applications Applications Working Group and removed Team:Applications Applications Working Group labels Dec 6, 2023
@briangregoryholmes
Copy link
Contributor

This works for me as expected on Chrome. Is it important enough that we should fire an event beforeUnload so that Safari users get a warning if this is done accidentally?

@ericpgreen2
Copy link
Contributor Author

This works for me as expected on Chrome. Is it important enough that we should fire an event beforeUnload so that Safari users get a warning if this is done accidentally?

Oh, fair callout. Currently, when a user attempts to navigates away from an unsaved source, we do have this dialog:
image

It might be a little rabbit hole to reconcile two competing beforeUnload dialogs, so I'll leave the current behavior for now. In this PR, I mainly wanted to enable trackpad navigation on Rill Cloud.

@ericpgreen2 ericpgreen2 merged commit 856d1d6 into main Dec 7, 2023
2 checks passed
@ericpgreen2 ericpgreen2 deleted the fix-trackpad-navigation-in-rill-cloud branch December 7, 2023 18:03
esevastyanov pushed a commit that referenced this pull request Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Applications Applications Working Group
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trackpad gesture navigation doesn't work on Google Chrome
2 participants