+0
-4
@@ -67,6 +67,2 @@ 'use strict'; | ||
| function checkUpdate() { | ||
| } | ||
| function update() { | ||
@@ -73,0 +69,0 @@ rafId = raf(update); |
+1
-1
| { | ||
| "name": "raf-scroll", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "A scroll event that fires only once per frame.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+2
-0
@@ -11,2 +11,4 @@ raf-scroll | ||
| Every event call is sync on a `requestAnimationFrame` (raf) loop. It is stopped by default, start when you use `add`, stopped if there is no more listeners after a `remove` call or if you call `destroy`. | ||
| `rafScroll.add(callback)` | ||
@@ -13,0 +15,0 @@ Will call `callback` maximum once per frame, if the scroll value has changed. |
+1
-0
@@ -27,2 +27,3 @@ 'use strict'; | ||
| assert.notDeepEqual(ev.deltaY, 0, 'Calling getCurrent shouldn\'t affect/reset the deltaY value.'); | ||
| assert.end(); | ||
| }, 50); |
4411
4.6%41
5.13%85
-1.16%