We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 58db0e5 + 114e8a8 commit 9fb4657Copy full SHA for 9fb4657
src/Draggable/Plugins/Mirror/Mirror.js
@@ -513,11 +513,11 @@ function positionMirror({withFrame = false, initial = false} = {}) {
513
const x = passedThreshX
514
? Math.round((sensorEvent.clientX - mirrorOffset.left - scrollOffset.x) / (options.thresholdX || 1)) *
515
(options.thresholdX || 1)
516
- : lastMovedX;
+ : Math.round(lastMovedX);
517
const y = passedThreshY
518
? Math.round((sensorEvent.clientY - mirrorOffset.top - scrollOffset.y) / (options.thresholdY || 1)) *
519
(options.thresholdY || 1)
520
- : lastMovedY;
+ : Math.round(lastMovedY);
521
522
if ((options.xAxis && options.yAxis) || initial) {
523
mirror.style.transform = `translate3d(${x}px, ${y}px, 0)`;
0 commit comments