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

scrollbooster

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrollbooster - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "scrollbooster",
"description": "Enjoyable content dragging library",
"version": "1.0.0",
"version": "1.0.1",
"author": "Ilya Shubin <pixelwake@gmail.com>",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -231,2 +231,3 @@ export default class ScrollBooster {

handleEvents() {
let vp = this.props.viewport
let scroll = { x: 0, y: 0 }

@@ -269,2 +270,12 @@ let mousedown = { x: 0, y: 0 }

// click on vertical scrollbar
if (pageX - vp.offsetLeft >= vp.clientLeft + vp.clientWidth) {
return
}
// click on horizontal scrollbar
if (pageY - vp.offsetTop >= vp.clientTop + vp.clientHeight) {
return
}
this.isDragging = true

@@ -271,0 +282,0 @@ if (scroll.x || scroll.y) {

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