configure what mouse buttons can be used for drag&drop

This commit is contained in:
Anton Lavrenov
2019-02-14 10:33:58 -05:00
parent dcff79eb63
commit 1dea3696a2
8 changed files with 60 additions and 26 deletions

View File

@@ -247,7 +247,7 @@ Konva.Stage.prototype.simulateMouseDown = function(pos) {
this._mousedown({
clientX: pos.x,
clientY: pos.y + top,
button: pos.button
button: pos.button || 0
});
};
@@ -257,7 +257,7 @@ Konva.Stage.prototype.simulateMouseMove = function(pos) {
var evt = {
clientX: pos.x,
clientY: pos.y + top,
button: pos.button
button: pos.button || 0
};
this._mousemove(evt);
@@ -270,7 +270,7 @@ Konva.Stage.prototype.simulateMouseUp = function(pos) {
var evt = {
clientX: pos.x,
clientY: pos.y + top,
button: pos.button
button: pos.button || 0
};
Konva.DD._endDragBefore(evt);