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

horizontal scrolling #57

Open
musicformellons opened this issue Dec 9, 2016 · 8 comments
Open

horizontal scrolling #57

musicformellons opened this issue Dec 9, 2016 · 8 comments

Comments

@musicformellons
Copy link

Looks nice! Can you use it also for horizontal instead of vertical scrolling?

@stutrek
Copy link
Owner

stutrek commented Dec 9, 2016

Unfortunately you cannot. It's a surprisingly rare feature request.

@ferredel
Copy link

Actually it will be very usefull

@jwebcat
Copy link

jwebcat commented Jun 28, 2017

I have to agree horizontal scroll would be useful.

@mcfog
Copy link

mcfog commented Oct 11, 2017

+1 it would be super useful to carousel

@johanneslamers
Copy link

Yes please!

@boeledi
Copy link

boeledi commented Dec 19, 2017

I don't recommend but if you really want to have or need a quick-win solution (but dirty), clone the not minimized version of scrollMonitor.js (and call it scrollMonitorHoriz.js, e.g.) and apply the following changes to the code:

  1. rename all "scrollMonitor" to "scrollMonitorHoriz"
  2. apply the following replacements (case sensitive):
  • "top" => "left"
  • "Top" => "Left"
  • "bottom" => "right"
  • "Bottom" => "Right"
  • "height" => "width"
  • "Height" => "Width"
  • "window.pageYOffset" => "window.pageXOffset"

and this should make the trick but that new version will no longer support the vertical scrolling...

@stutrek
Copy link
Owner

stutrek commented Dec 19, 2017

🤘 Nice hack.

I think there's a second place you'll need to edit if you want it to work in scroll containers too, but if it works keep doing it.

@jamesblasco
Copy link

+1 It would be very helpful!

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

8 participants