Skip to content

Commit

Permalink
Merge branch 'master' of github.com:konvajs/konva
Browse files Browse the repository at this point in the history
  • Loading branch information
lavrton committed Feb 27, 2018
2 parents 1bbc433 + eb0137b commit 2f16b0f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/Stage.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@

// always call preventDefault for desktop events because some browsers
// try to drag and drop the canvas element
if (evt.preventDefault) {
if (evt.preventDefault && evt.cancelable) {
evt.preventDefault();
}
},
Expand Down Expand Up @@ -526,7 +526,7 @@

// always call preventDefault for desktop events because some browsers
// try to drag and drop the canvas element
if (evt.preventDefault) {
if (evt.preventDefault && evt.cancelable) {
evt.preventDefault();
}
},
Expand Down Expand Up @@ -602,7 +602,7 @@

// always call preventDefault for desktop events because some browsers
// try to drag and drop the canvas element
if (evt.preventDefault) {
if (evt.preventDefault && evt.cancelable) {
evt.preventDefault();
}
},
Expand All @@ -623,6 +623,7 @@
if (
shape.isListening() &&
shape.preventDefault() &&
evt.cancelable &&
evt.preventDefault
) {
evt.preventDefault();
Expand Down Expand Up @@ -672,6 +673,7 @@
if (
shape.isListening() &&
shape.preventDefault() &&
evt.cancelable &&
evt.preventDefault
) {
evt.preventDefault();
Expand Down Expand Up @@ -710,6 +712,7 @@
if (
shape.isListening() &&
shape.preventDefault() &&
evt.cancelable &&
evt.preventDefault
) {
evt.preventDefault();
Expand All @@ -718,7 +721,7 @@
this._fire(CONTENT_TOUCHMOVE, { evt: evt });
}
if (dd) {
if (Konva.isDragging() && Konva.DD.node.preventDefault()) {
if (Konva.isDragging() && Konva.DD.node.preventDefault() && evt.cancelable) {
evt.preventDefault();
}
}
Expand Down

0 comments on commit 2f16b0f

Please sign in to comment.