jnicol / trackpad-scroll-emulator

A jQuery plugin that emulates OSX trackpad-style scrollbars in any browser or platform.
MIT License
217 stars 44 forks source link

Add an 'autoHide' option (same as osx behaviour) #4

Closed Grsmto closed 11 years ago

Grsmto commented 11 years ago

Hi,

I added an option to disable the autohide feature. As I think this plugin is really useful even without that. Sometimes you don't want to have to mouse over an area to know that this is scrollable (when content is not obviously "cutted"). Or even if you don't have a mouse as input device you will not see the scrollbar (tv? touch devices? etc.).

You can test the option in the demo file with this:

$('.demo1').TrackpadScrollEmulator({ 'autoHide':false });

Readme is updated with option usage.

Thanks for your plugin that I really appreciate.

I would like to add more features/examples like scrollbar customization and mobile support. Tell me what you think.

yohsuzuki commented 11 years ago

I like this. I don't think you need to attach flashScrollbar to scroll or mouse enter if it's always visible..

Grsmto commented 11 years ago

You are true for the mouseEnter event binding. But we need to call flashScrollbar on scroll because it also check for scrollbar resize. Thank you.

jnicol commented 11 years ago

This is great. Sorry it has taken me so long to merge the PR!