A simple scrollbar implementation inspired by Trackpad Scroll Emulator.
ember install ember-scrollable
The component accepts the following options:
horizontal: Enables horizontal scrolling (default:false)vertical: Enables vertical scrolling (default:trueif horizontal is unset)autoHide: Enables auto hiding of the scrollbars on mouse out (default:true)scrollTo: Set this property to manually scroll to a certain position (if in single bar mode)scrollToX: Set this property to manually scroll to a certain position in the horizontal directionscrollToY: Set this property to manually scroll to a certain position in the vertical directiononScroll(scrollOffset, event): action triggered whenever the user scrolls, called with the currentscrollOffsetand the original scrolleventonScrolledToBottom: action triggered when user scrolled to the bottom
git clone https://github.com/alphasights/ember-scrollable.gitnpm install && bower install
ember server
ember test --server