Skip to content

Commit 325ab79

Browse files
author
卢明君
committed
fix(plugin:mirror): incorrect use of the function 'positionMirror'
fix Shopify#506
1 parent 6f5539b commit 325ab79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Draggable/Plugins/Mirror/Mirror.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ function removeMirrorID({mirror, ...args}) {
502502
* @return {Promise}
503503
* @private
504504
*/
505-
function positionMirror({withFrame = false, initial = false} = {}) {
505+
function positionMirror({raf = false, initial = false} = {}) {
506506
return ({
507507
mirror,
508508
sensorEvent,
@@ -556,7 +556,7 @@ function positionMirror({withFrame = false, initial = false} = {}) {
556556

557557
resolve(result);
558558
},
559-
{frame: withFrame},
559+
{raf},
560560
);
561561
};
562562
}

0 commit comments

Comments
 (0)