Skip to content

IcarusWorks/ember-scrollable

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ember Scrollable

Npm Version Code Climate Build Status

A simple wrapper around Trackpad Scroll Emulator.

Check out the demo

Installation

  • ember install ember-scrollable

Basic Usage

{{! app/templates/index.hbs }}

{{#ember-scrollable}}
  Some long content...
{{/ember-scrollable}}

Configuring the Component

The component accepts the following options:

  • horizontal: Enables horizontal scrolling (default: false)
  • autoHide: Enables auto hiding of the scrollbars on mouse out (default: true)
  • scrollTo: Set this property to manually scroll to a certain position
  • onScroll(scrollOffset, event): action triggered whenever the user scrolls, called with the current scrollOffset and the original scroll event
  • onScrolledToBottom: action triggered when user scrolled to the bottom

Developing

Setup

  • git clone https://github.com/alphasights/ember-scrollable.git
  • npm install && bower install

Running

  • ember server

Running Tests

  • ember test --server

About

A simple Ember wrapper around Trackpad Scroll Emulator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 65.6%
  • HTML 21.8%
  • CSS 9.9%
  • Makefile 1.3%
  • Other 1.4%