New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

scroll-syncer

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scroll-syncer - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

13

index.common.js

@@ -0,1 +1,12 @@

// detect if user-agent support passive event binding
var supportPassive = false
if (window && window.addEventListener && Object.defineProperty) {
var options = Object.defineProperty({}, 'passive', {
get: function () { supportPassive = true }
})
window.addEventListener('_detectpassive', null, options)
}
var bindOptions = supportPassive && { passive: true }
function ScrollSyncer (vertical, horizontal) {

@@ -14,3 +25,3 @@ this._els = []

if (!el || !el.addEventListener) return
el.addEventListener('scroll', this._scrollHandler)
el.addEventListener('scroll', this._scrollHandler, bindOptions)
this._els.push(el)

@@ -17,0 +28,0 @@ }

2

package.json
{
"name": "scroll-syncer",
"version": "0.0.1",
"version": "0.0.2",
"description": "Synchronize scoll position among several elements",

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

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