vue-scrollto
Advanced tools
Comparing version 2.7.8 to 2.7.9
{ | ||
"name": "vue-scrollto", | ||
"version": "2.7.8", | ||
"version": "2.7.9", | ||
"description": "Adds a directive that listens for click events and scrolls to elements.", | ||
@@ -5,0 +5,0 @@ "main": "vue-scrollto.js", |
@@ -155,9 +155,10 @@ import BezierEasing from "bezier-easing"; | ||
var cumulativeOffset = _.cumulativeOffset(element); | ||
var cumulativeOffsetContainer = _.cumulativeOffset(container); | ||
var cumulativeOffsetElement = _.cumulativeOffset(element); | ||
initialY = scrollTop(container); | ||
targetY = cumulativeOffset.top - container.offsetTop + offset; | ||
targetY = cumulativeOffsetElement.top - cumulativeOffsetContainer.top + offset; | ||
initialX = scrollLeft(container); | ||
targetX = cumulativeOffset.left - container.offsetLeft + offset; | ||
targetX = cumulativeOffsetElement.left - cumulativeOffsetContainer.left + offset; | ||
@@ -164,0 +165,0 @@ abort = false; |
@@ -123,3 +123,3 @@ (function (global, factory) { | ||
try { | ||
var opts = Object.defineProperty({}, 'passive', { | ||
var opts = Object.defineProperty({}, "passive", { | ||
get: function get() { | ||
@@ -352,9 +352,10 @@ supportsPassive = true; | ||
var cumulativeOffset = _.cumulativeOffset(element); | ||
var cumulativeOffsetContainer = _.cumulativeOffset(container); | ||
var cumulativeOffsetElement = _.cumulativeOffset(element); | ||
initialY = scrollTop(container); | ||
targetY = cumulativeOffset.top - container.offsetTop + offset; | ||
targetY = cumulativeOffsetElement.top - cumulativeOffsetContainer.top + offset; | ||
initialX = scrollLeft(container); | ||
targetX = cumulativeOffset.left - container.offsetLeft + offset; | ||
targetX = cumulativeOffsetElement.left - cumulativeOffsetContainer.left + offset; | ||
@@ -361,0 +362,0 @@ abort = false; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
86784
659