@adoratorio/hades
Advanced tools
Comparing version 0.1.11 to 0.1.12
@@ -37,2 +37,3 @@ import Aion from '@adoratorio/aion'; | ||
scale: number; | ||
uniqueDirection: boolean; | ||
} | ||
@@ -39,0 +40,0 @@ export interface Boundries { |
@@ -64,2 +64,3 @@ "use strict"; | ||
scale: 1, | ||
uniqueDirection: false, | ||
}; | ||
@@ -214,3 +215,3 @@ this.options = __assign({}, defaults, options); | ||
// Multiply the scroll by the options multiplier | ||
event.delta.x = event.delta.x * this.options.scale; | ||
event.delta.x = this.options.uniqueDirection ? (event.delta.x || event.delta.y) * this.options.scale : event.delta.x * this.options.scale; | ||
event.delta.y = event.delta.y * this.options.scale; | ||
@@ -217,0 +218,0 @@ // Set the first scroll direction |
{ | ||
"name": "@adoratorio/hades", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"description": "A smooth scrollbar based on Hermes, scroll down 'till hell", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
39654
779
1