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

"Axis locking" doesn't work in some cases #38

Open
irvnriir opened this issue May 21, 2021 · 3 comments
Open

"Axis locking" doesn't work in some cases #38

irvnriir opened this issue May 21, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@irvnriir
Copy link

Github's file editor .

@irvnriir irvnriir added the bug Something isn't working label May 21, 2021
@fastaddons
Copy link
Collaborator

The axis lock is enabled only when the X and Y scrollbars are on two different elements - usually you have the main Y scrollbar which you don't want to scroll when scrolling some nested horizontal X element.
On the other hand when working with some map or image, you want to scroll it in both axis.

Maybe I could detect that the scrolling content is editable and enable axis lock. That way it should fix online editors while keeping maps and images freely scrollable.

@irvnriir
Copy link
Author

irvnriir commented Jun 12, 2021

It also should work on all HTML content which is other than certain specific, like maps .

@nyanpasu64
Copy link

nyanpasu64 commented Feb 11, 2022

Specifically in my case, I have a landscape Google Doc with outline view open on the left, which is too wide to fit in a half-screen-wide browser window. By default I want vertical scrolling only, but I also want to be able to quickly scroll between the outline and main document views. It would be convenient to enable axis lock for all sites, so I can only scroll vertically unless I initiate a horizontal/diagonal scroll, or (possibly) make a large horizontal movement after initiating a vertical scroll.

(Honestly Google Doc's outline view could be improved so I wouldn't need horizontal scrolling.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants