@adoratorio/hades
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -28,2 +28,3 @@ import { MODE, DIRECTION, TRACK, HadesOptions, Boundries, Vec2, Easing } from "./declarations"; | ||
private startNeedEmission; | ||
private aionId; | ||
amount: Vec2; | ||
@@ -30,0 +31,0 @@ velocity: Vec2; |
@@ -34,2 +34,3 @@ "use strict"; | ||
this.startNeedEmission = true; | ||
this.aionId = "hades-frame-" + Date.now(); | ||
this.amount = { x: 0, y: 0 }; | ||
@@ -127,3 +128,3 @@ this.velocity = { x: 0, y: 0 }; | ||
} | ||
this.engine.add(this.frameHandler, 'hades_frame'); | ||
this.engine.add(this.frameHandler, this.aionId); | ||
this.engine.start(); | ||
@@ -363,3 +364,3 @@ } | ||
this.manager.destroy(); | ||
this.engine.remove('hades_frame'); | ||
this.engine.remove(this.aionId); | ||
delete this.manager; | ||
@@ -366,0 +367,0 @@ delete this.engine; |
{ | ||
"name": "@adoratorio/hades", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A smooth scrollbar based on Hermes, scroll down 'till hell", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -34,3 +34,3 @@ # Hades | ||
|emitGlobal|`boolean`|`false`|If you want the custom scroll generated internally also emitted on global scope (window).| | ||
|callback|`Callbacks`|`{ frame: () => {}, scroll: () => {} }`|The callbacks functions, scroll is called on each scroll event, the [HadesEvent]() is passed to this function. Frame is called every rAF after updating style| | ||
|callbacks|`Callbacks`|`{ frame: () => {}, scroll: () => {} }`|The callbacks functions, scroll is called on each scroll event, the [HadesEvent]() is passed to this function. Frame is called every rAF after updating style| | ||
|renderByPixel|`boolean`|`false`|Used if you want to apply integer rounded values to the css transition units. If not, the full value is used instead, resulting in a smoother animations, especially the slowest ones, avoiding that much stattering in particular in the end of the animation, but it's performance consuming.| | ||
@@ -37,0 +37,0 @@ |lockX|`boolean`|`true`|Lock the x axis when detecting scroll events.| |
43905
855