eerne / scrollbar

MooTools Scrollbar class (extends Slider)
http://mild.ch/productslider
MIT License
29 stars 9 forks source link

Mousewheel support #1

Closed arian closed 14 years ago

arian commented 14 years ago

It will be great if you could scroll with the mousewheel.

I assume that you can achieve this quite easy with the mousewheel event: http://mootools.net/docs/core/Element/Element.Event (at the bottom of the page)

eerne commented 14 years ago

Hi arian

Yes mousewheel was definitely on my todo list. I got wheel support working but forgot to install git on the new laptop. I'll update github soon.

cheers eni

eerne commented 14 years ago

Hi Arian I pushed mousewheel support. Tested on FireFox 3.6, Safari and Chromium on OS X. If you have a chance please check on Internet Explorer's.

arian commented 14 years ago

Nice!... I don't have IE at the moment.

But on the horizontal slider, when I scroll down, he moves to the left.. It would be more intuitive when i would scroll to the right.

eerne commented 14 years ago

All I did is just to support the Slider wheel option. As far as I can tell it doesn't support right/left scrolling. Although I think it would be nice to support right/left scrolling I don't think it's do-able in a consistent way. How can you tell if the mouse even supports right/left or not?

I setup a shell for testing Slider with the wheel option: http://mootools.net/shell/A5Qvk/

eerne commented 14 years ago

I just realized it already works here with left/right and top/bottom scrolling at the same time. doesn't it work for you?

eerne commented 14 years ago

pushed mousewheel support to 0.9.7