NickPiscitelli/Glider.js

Make it work with mousewheel scroll ?

Closed this issue · 5 comments

Hi guys is it possible to make Gliderjs works with the mousewheel scroll ?

It should work by default. If you are intending to translate vertical scrolling into horizontal, you would need to write a custom function to capture and invert the scroll.

hey yeah it is a horizontal scroll but what you mean by capture and invert the scroll i know the delta method but i don't see anything in the docs about.
I would like to make it work without the lock, like a free scroll is it possible ?

Yes, disable scroll lock via the options.

Regarding the vertical scroll, you would need to add a scroll event listener and then inverse the direction by manually adjusting scroll left on the element. I've never tried this though so I can't say how well it will work.

It should work by default.

Btw what do you mean by that ? If there is 6 items and 3 to show and if u mousewheel is it suposed to work ?

for example https://codepen.io/asmirbe/pen/gORZdpW
here i added drag option it work when dragged but if u move the mousewheel nothing happens is this why ur saying i need a custom function ?