mirror of
https://github.com/konvajs/konva.git
synced 2025-10-08 00:14:23 +08:00
Private method stage._setPointerPosition()
is deprecated
New method `stage.setPointersPositions(event)`
This commit is contained in:
@@ -29,7 +29,7 @@ export const DD = {
|
||||
// it is possible that pos is undefined
|
||||
// reattach it
|
||||
if (!pos) {
|
||||
node.getStage()._setPointerPosition(evt);
|
||||
node.getStage().setPointersPositions(evt);
|
||||
pos = node.getStage().getPointerPosition();
|
||||
}
|
||||
var dragDistance = node.dragDistance();
|
||||
@@ -42,7 +42,7 @@ export const DD = {
|
||||
}
|
||||
}
|
||||
|
||||
node.getStage()._setPointerPosition(evt);
|
||||
node.getStage().setPointersPositions(evt);
|
||||
if (!DD.isDragging) {
|
||||
DD.isDragging = true;
|
||||
node.fire(
|
||||
|
Reference in New Issue
Block a user