vue-scrollto
Advanced tools
Comparing version 2.16.1 to 2.16.2
{ | ||
"name": "vue-scrollto", | ||
"version": "2.16.1", | ||
"version": "2.16.2", | ||
"description": "Adds a directive that listens for click events and scrolls to elements.", | ||
@@ -5,0 +5,0 @@ "main": "vue-scrollto.js", |
@@ -199,3 +199,3 @@ import BezierEasing from "bezier-easing"; | ||
const containerBottom = containerTop + containerHeight; | ||
const elementTop = targetY; | ||
const elementTop = targetY - offset; | ||
const elementBottom = elementTop + element.offsetHeight; | ||
@@ -202,0 +202,0 @@ if ( |
/*! | ||
* vue-scrollto v2.16.1 | ||
* vue-scrollto v2.16.2 | ||
* (c) 2019 Randjelovic Igor | ||
@@ -398,3 +398,3 @@ * @license MIT | ||
var containerBottom = containerTop + containerHeight; | ||
var elementTop = targetY; | ||
var elementTop = targetY - offset; | ||
var elementBottom = elementTop + element.offsetHeight; | ||
@@ -401,0 +401,0 @@ |
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
37447