@adoratorio/hades
Advanced tools
Comparing version 0.1.12 to 0.1.13
@@ -150,3 +150,3 @@ "use strict"; | ||
var py = this.options.lockY ? 0 : this.amount.y * -1; | ||
var prop = "translateX(" + px + "px) translateY(" + py + "px) translateZ(0)"; | ||
var prop = "translate3d(" + px + "px, " + py + "px, 0px)"; | ||
this.options.container.style.transform = prop; | ||
@@ -167,3 +167,3 @@ } | ||
var py = _this.amount.y * -1; | ||
section.style.transform = "translateY(" + py + "px)"; | ||
section.style.transform = "translate3d(0px, " + py + "px, 0px)"; | ||
} | ||
@@ -170,0 +170,0 @@ }); |
@@ -91,3 +91,3 @@ "use strict"; | ||
var translate = (width - this.trackX.thumbSize) * ratio; | ||
this.trackX.thumb.style.transform = "translate3d(" + translate + "px, 0, 0)"; | ||
this.trackX.thumb.style.transform = "translate3d(" + translate + "px, 0px, 0px)"; | ||
if (ratio === this.trackX.ratio) { | ||
@@ -105,3 +105,3 @@ this.trackX.wrapper.classList.remove('show'); | ||
var translate = (height - this.trackY.thumbSize) * ratio; | ||
this.trackY.thumb.style.transform = "translate3d(0, " + translate + "px, 0)"; | ||
this.trackY.thumb.style.transform = "translate3d(0px, " + translate + "px, 0px)"; | ||
if (ratio === this.trackY.ratio) { | ||
@@ -108,0 +108,0 @@ this.trackY.wrapper.classList.remove('show'); |
{ | ||
"name": "@adoratorio/hades", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"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
0