Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Konva.Stage.prototype.simulateMouseUp = function(pos) {
'use strict';
var top = this.content.getBoundingClientRect().top;
var evt = { clientX: pos.x, clientY: pos.y + top, button: pos.button };
Konva.DD._endDragBefore(evt);
this._mouseup(evt);
Konva.DD._endDragAfter(evt);
};
Konva.Stage.prototype.simulateMouseMove = function(pos) {
var top = this.content.getBoundingClientRect().top;
var evt = { clientX: pos.x, clientY: pos.y + top, button: pos.button };
this._mousemove(evt);
Konva.DD._drag(evt);
};
Konva.Stage.prototype.simulateMouseUp = function(pos) {
'use strict';
var top = this.content.getBoundingClientRect().top;
var evt = { clientX: pos.x, clientY: pos.y + top, button: pos.button };
Konva.DD._endDragBefore(evt);
this._mouseup(evt);
Konva.DD._endDragAfter(evt);
};