Skip to content

Instantly share code, notes, and snippets.

@gknoy
Forked from Gaurav0/controllers.application.js
Last active March 29, 2017 17:24
Show Gist options
  • Save gknoy/f606a9d9d5b31a07065125342f147c4f to your computer and use it in GitHub Desktop.
Save gknoy/f606a9d9d5b31a07065125342f147c4f to your computer and use it in GitHub Desktop.
perfect scrolling
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
divs: Array.from(Array(100).keys())
});
<h1>wat</h1>
{{#perfect-scroll}}
{{#each divs as |d|}}
<div>d</div>
{{/each}}
{{/perfect-scroll}}
{
"version": "0.10.4",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": true,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.6.2",
"ember-perfectscroll": "0.1.12",
"perfect-scrollbar": "^0.6.12"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment