mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
Don't move out of bounds on Drag&Drop
This commit is contained in:
@@ -241,8 +241,8 @@ export default {
|
||||
this.gridYLast = gridY;
|
||||
|
||||
if (action == 'm') {
|
||||
x = gridX + 1;
|
||||
y = gridY + 1;
|
||||
x = Math.max(gridX + 1, 1);
|
||||
y = Math.max(gridY + 1, 1);
|
||||
w = parseInt(this.dataTransfer.w);
|
||||
h = parseInt(this.dataTransfer.h);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user