Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-scrollto

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-scrollto - npm Package Compare versions

Comparing version 2.7.8 to 2.7.9

2

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc