mathieudutour / scroll-through-time

:hourglass: :tophat: :rabbit2: Two fingers scroll moves through time instead of space
https://xkcd.com/1806/
MIT License
721 stars 54 forks source link

Scroll axis locking #10

Closed shockey closed 5 years ago

shockey commented 6 years ago

Is it feasible to lock the scrolling onto the axis that it started on, i.e. ignore X axis scrolling when a Y scroll is in progress, and vice versa?

I just installed this, and I love it, but I'm paranoid about inadvertently undoing/redoing a change when cruising through a file.

mathieudutour commented 6 years ago

pretty sure I already do this: https://github.com/mathieudutour/scroll-through-time/blob/master/lib/scroll-through-time.js#L12-L14

DawnGruel commented 6 years ago

I think that when this function is enabled, it should be pressing a hot key to trigger the effect later.