Skip to content

Commit

Permalink
fix embed resize
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3orblade committed Jan 24, 2024
1 parent a657038 commit 670313d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ts/component/block/embed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ const BlockEmbed = observer(class BlockEmbed extends React.Component<I.BlockComp
keyboard.setResize(true);
keyboard.disableSelection(true);

$(`#block-${block.id}`).addClass('isResizing');
$(`.block.blockEmbed`).addClass('isResizing');
win.on(`mousemove.${block.id}`, e => this.onResizeMove(e, checkMax));
win.on(`mouseup.${block.id}`, e => this.onResizeEnd(e, checkMax));
};
Expand Down Expand Up @@ -941,7 +941,7 @@ const BlockEmbed = observer(class BlockEmbed extends React.Component<I.BlockComp
keyboard.disableSelection(false);

win.off(`mousemove.${block.id} mouseup.${block.id}`);
$(`#block-${block.id}`).removeClass('isResizing');
$(`.block.blockEmbed`).removeClass('isResizing');

C.BlockListSetFields(rootId, [
{ blockId: id, fields: { ...fields, width: w } },
Expand Down

0 comments on commit 670313d

Please sign in to comment.