Skip to content

Commit 597eb83

Browse files
committed
Merge branch 'fix-windows-click' of https://github.com/Bottersnike/musicblocks into Bottersnike-fix-windows-click
2 parents f80134b + e5298a0 commit 597eb83

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/block.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2267,7 +2267,9 @@ function Block(protoblock, blocks, overrideName) {
22672267
}
22682268

22692269
if (window.hasMouse) {
2270-
moved = true;
2270+
if (event.stageX / that.blocks.getStageScale() !== that.original.x ||
2271+
event.stageY / that.blocks.getStageScale() !== that.original.y)
2272+
moved = true;
22712273
} else {
22722274
// Make it eaiser to select text on mobile.
22732275
setTimeout(function () {

0 commit comments

Comments
 (0)