scrollbooster
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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
85795
879