diff --git a/packages/core/src/view/mixins/CellsMixin.ts b/packages/core/src/view/mixins/CellsMixin.ts index 3d739cafc..b043d940d 100644 --- a/packages/core/src/view/mixins/CellsMixin.ts +++ b/packages/core/src/view/mixins/CellsMixin.ts @@ -2712,15 +2712,17 @@ export const CellsMixin: PartialType = { }, /** - * Returns true if the given cell is moveable. This returns {@link cellsMovable} - * for all given cells if {@link isCellLocked} does not return true for the given - * cell and its style does not specify {@link 'movable'} to be 0. + * Returns `true` if the given cell is movable. This returns {@link cellsMovable} + * for all given cells if {@link isCellLocked} does not return `true` for the given + * cell, and its style does not specify {@link CellStateStyle.movable} to be `false`. * * @param cell {@link mxCell} whose movable state should be returned. */ isCellMovable(cell) { const style = this.getCurrentCellStyle(cell); - return this.isCellsMovable() && !this.isCellLocked(cell) && !style.movable; + return this.isCellsMovable() + && !this.isCellLocked(cell) + && (style.movable ?? true); }, /**