mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
fix #431
This commit is contained in:
parent
f9a05c4a56
commit
faa3ef13cd
@ -95,11 +95,14 @@
|
||||
Kinetic.Node.prototype._setDragPosition = function(evt) {
|
||||
var dd = Kinetic.DD,
|
||||
pos = this.getStage().getPointerPosition(),
|
||||
dbf = this.getDragBoundFunc(),
|
||||
newNodePos = {
|
||||
x: pos.x - dd.offset.x,
|
||||
y: pos.y - dd.offset.y
|
||||
};
|
||||
dbf = this.getDragBoundFunc();
|
||||
if (!pos) {
|
||||
return;
|
||||
}
|
||||
var newNodePos = {
|
||||
x: pos.x - dd.offset.x,
|
||||
y: pos.y - dd.offset.y
|
||||
};
|
||||
|
||||
if(dbf !== undefined) {
|
||||
newNodePos = dbf.call(this, newNodePos, evt);
|
||||
|
Loading…
Reference in New Issue
Block a user