eerne / scrollbar

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

Scrollable even when content doesn't overflow #8

Open paulschwarz opened 13 years ago

paulschwarz commented 13 years ago

The content I insert into the scrollable area is dynamic and does not always overflow (meaning scrollbars should actually do nothing, or disappear, but that's not what I'm asking).

Assume I am using vertical scrolling.

So my test case had a panel which was 100px high with a ScrollBar. In that scrollable area was one line of text. Clearly no scrolling is required. However as I scroll down the line of text tweens down to align itself on the bottom of the 100px scrollable area. When I mousewheel up it tweens back up to the top.

There should be a check to test if the scrollable area is smaller than container, n'est-ce pas?

eerne commented 13 years ago

Hm ok, yes I think it probably would be a good idea to have some check if the scrollable area is smaller than container.