Skip to content

Commit c5c658a

Browse files
committed
Interaction: rename redoMove to doMove
Re: #151
1 parent 4f4b9e8 commit c5c658a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Interaction.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class Interaction {
163163
animationFrame.cancel(this.inertiaStatus.i);
164164
this.inertiaStatus.active = false;
165165

166-
this.redoMove();
166+
this.doMove();
167167
break;
168168
}
169169
element = utils.parentElement(element);
@@ -325,7 +325,7 @@ class Interaction {
325325
}
326326

327327
/*\
328-
* Interaction.redoMove
328+
* Interaction.doMove
329329
[ method ]
330330
*
331331
* Force a move of the current action at the same coordinates. Useful if
@@ -340,11 +340,11 @@ class Interaction {
340340
| // change the snap settings
341341
| event.interactable.draggable({ snap: { targets: [] }});
342342
| // fire another move event with re-calculated snap
343-
| event.interaction.redoMove();
343+
| event.interaction.doMove();
344344
| }
345345
| });
346346
\*/
347-
redoMove (preEnd) {
347+
doMove (preEnd) {
348348
const signalArg = {
349349
dx: 0,
350350
dy: 0,

src/modifiers/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Interaction.signals.on('action-end', function ({ interaction }) {
112112
// if the endOnly option is true for any modifier
113113
if (modifiers[modifiers.names[i]].shouldDo(interaction.target, interaction.prepared.name, true, true)) {
114114
// fire a move event at the modified coordinates
115-
interaction.redoMove(true /* preEnd */);
115+
interaction.doMove(true /* preEnd */);
116116
break;
117117
}
118118
}

0 commit comments

Comments
 (0)