Open irvnriir opened 3 years ago
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.
It also should work on all HTML content which is other than certain specific, like maps .
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.)
Github's file editor .