Private method stage._setPointerPosition() is deprecated

New method `stage.setPointersPositions(event)`
This commit is contained in:
Anton Lavrenov
2019-02-19 20:17:49 -05:00
parent ab4a14abce
commit 0ae1f66b60
10 changed files with 156 additions and 84 deletions

View File

@@ -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(