julianlam/Scrollable — Issue #2: If mouse strays outside of target element during scrollbar use, knob fades
Author: julianlam
Created: 2011-11-16 21:27:14+00:00
State: open

As the scrollbar itself is at the edge of the target element, this is likely to happen. The drag effect continues working even if the mouse strays out of the target element, but because there is a mouseout event tied to the target element that fades the scrollbar, it will fade regardless of whether or not the scrollbar itself is actually in use.

The class needs to identify when it is in use. There is the `this.active` variable, which should be used (as right now, it's not used for anything). Perhaps a mousedown event tied to the knob to trigger `this.active`, which inhibits the fade effect.