diff --git a/src/tool/Tool.js b/src/tool/Tool.js index 0717fccd..3a5a9f90 100644 --- a/src/tool/Tool.js +++ b/src/tool/Tool.js @@ -45,7 +45,8 @@ var Tool = this.Tool = ToolHandler.extend(new function() { // If the event was triggered by a touch screen device, // prevent the default behaviour, as it will otherwise // scroll the page: - if (event && event.targetTouches) + var touchDevice = event && event.targetTouches; + if (touchDevice) event.preventDefault(); var point = event && viewToArtwork(event, that._document); // If there is only an onMouseMove handler, call it when @@ -58,7 +59,7 @@ var Tool = this.Tool = ToolHandler.extend(new function() { } else if (!dragging || onlyMove) { that.onHandleEvent('mousemove', point, event); } - if (that.onMouseMove || that.onMouseDrag) + if (that.onMouseMove || (touchDevice && that.onMouseDrag)) that._document.redraw(); },