Comparing version 0.4.5 to 0.4.6
@@ -285,11 +285,8 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
var zooming = this.options.zooming; | ||
var preventDefaultOnTouchMove = this.options.preventDefaultOnTouchMove; | ||
var _options = this.options, | ||
preventDefaultOnTouchMove = _options.preventDefaultOnTouchMove, | ||
zooming = _options.zooming; | ||
if (preventDefaultOnTouchMove === undefined) { | ||
preventDefaultOnTouchMove = true; | ||
} | ||
if (preventDefaultOnTouchMove) { | ||
if (preventDefaultOnTouchMove !== false) { | ||
this.bindEvent(container, 'touchmove', function (e) { | ||
@@ -296,0 +293,0 @@ e.preventDefault(); |
@@ -298,11 +298,8 @@ 'use strict'; | ||
var zooming = this.options.zooming; | ||
var preventDefaultOnTouchMove = this.options.preventDefaultOnTouchMove; | ||
var _options = this.options, | ||
preventDefaultOnTouchMove = _options.preventDefaultOnTouchMove, | ||
zooming = _options.zooming; | ||
if (preventDefaultOnTouchMove === undefined) { | ||
preventDefaultOnTouchMove = true; | ||
} | ||
if (preventDefaultOnTouchMove) { | ||
if (preventDefaultOnTouchMove !== false) { | ||
this.bindEvent(container, 'touchmove', function (e) { | ||
@@ -309,0 +306,0 @@ e.preventDefault(); |
{ | ||
"name": "zscroller", | ||
"version": "0.4.5", | ||
"version": "0.4.6", | ||
"description": "dom scroller based on zynga scroller", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
120754
2985