Browse Source

fix: recalculate guides to prevent issues with initial drag position

carlos/505-improve-grapesjs-absolute-mode
Carlos 11 months ago
parent
commit
4ab69000ff
  1. 3
      packages/core/src/commands/view/ComponentDrag.ts

3
packages/core/src/commands/view/ComponentDrag.ts

@ -389,6 +389,9 @@ export default {
position,
});
}
// Recalculate guides to avoid issues with the new position durin the first drag
this.guidesStatic = this.getGuidesStatic();
},
onDrag() {

Loading…
Cancel
Save