nir9 / itemslide

JavaScript Touch Carousel Library with Zero Dependencies
https://itemslide.org
MIT License
647 stars 85 forks source link

Strange behavior with mousewheel #16

Closed f0rmat1k closed 9 years ago

f0rmat1k commented 9 years ago

To fast scrolling with wheel, specialy when using trackpad on macOS. You just can't to scroll 1 slide, allways 2 and more. I propose to look at our solution wheel-indicator. One movement = one slide.

nir9 commented 9 years ago

Hi, Your library looks cool but i don't think it would be a very good experience if it scrolls one at time - if it had some feature that would allow to set scrolling speed (and scroll regularly like jquery-mousewheel) than i would definitely consider using your solution instead.

f0rmat1k commented 9 years ago

@nir9 yes, but you can easy tune, how slides should be scrolled by one movement.

new WheelIndicator({
    elem: document.querySelector('.element'),
    callback: function(e){
         carousel.gotoSlide(/* logic here */)
    }
  });

Right now it's really hard to use carousel with some mouses and trackpads (depend on device, OS and the frequency of firing events)

nir9 commented 9 years ago

I still don't think it would be a good experience of it scrolling a couple of slides per scroll. Unless there would be the feature that i suggested earlier i don't think this would fit.

f0rmat1k commented 9 years ago

ok