Comparing version 0.6.0-beta.3 to 0.6.0-beta.4
@@ -54,2 +54,3 @@ interface ViewportSize { | ||
private _eventHandlers; | ||
private __onIndicatorStartMouseMoving; | ||
private _initPagePos; | ||
@@ -56,0 +57,0 @@ constructor(_options: ZScrollerOption); |
@@ -1484,2 +1484,4 @@ function _defineProperty(obj, key, value) { | ||
_defineProperty(this, "__onIndicatorStartMouseMoving", void 0); | ||
_defineProperty(this, "_initPagePos", void 0); | ||
@@ -1823,3 +1825,6 @@ | ||
_proto._onIndicatorMouseMove = function _onIndicatorMouseMove(e, type) { | ||
document.body.setAttribute('unselectable', 'on'); | ||
if (!this.__onIndicatorStartMouseMoving) { | ||
document.body.setAttribute('unselectable', 'on'); | ||
this.__onIndicatorStartMouseMoving = true; | ||
} | ||
@@ -1835,3 +1840,4 @@ if (type === 'x') { | ||
_proto._onIndicatorMouseUp = function _onIndicatorMouseUp(e) { | ||
document.body.setAttribute('unselectable', ''); | ||
this.__onIndicatorStartMouseMoving = false; | ||
document.body.removeAttribute('unselectable'); | ||
e.stopPropagation(); | ||
@@ -1838,0 +1844,0 @@ }; |
{ | ||
"name": "zscroller", | ||
"description": "dom scroller based on zynga scroller", | ||
"version": "0.6.0-beta.3", | ||
"version": "0.6.0-beta.4", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
181197
1625