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.5.2 to 2.5.3

15

index.js

@@ -24,2 +24,14 @@ "use strict";

}
},
cumulativeOffset: function(element) {
var top = 0;
do {
top += element.offsetTop || 0;
element = element.offsetParent;
} while (element);
return {
top: top
};
}

@@ -86,4 +98,5 @@ };

var elementOffsetTop = _.cumulativeOffset(element).top;
var initialY = container.scrollTop;
var elementY = element.offsetTop - container.offsetTop;
var elementY = elementOffsetTop - container.offsetTop;
var targetY = elementY;

@@ -90,0 +103,0 @@

2

package.json
{
"name": "vue-scrollto",
"version": "2.5.2",
"version": "2.5.3",
"description": "Adds a directive that listens for click events and scrolls to elements.",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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