Remove double-click on block header to magnify (#233)

Now that we have the magnify button on the block, we don't need the
double-click to magnify.
This commit is contained in:
Evan Simkowitz 2024-08-15 17:49:34 -07:00 committed by GitHub
parent 42cc9f5d18
commit 65e8d4e3fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,10 +122,6 @@ const BlockFrame_Header = ({ blockId, layoutModel, viewModel }: BlockFrameProps)
preIconButtonElem = <IconButton decl={preIconButton} className="block-frame-preicon-button" />;
}
function handleDoubleClick() {
layoutModel?.onMagnifyToggle();
}
const headerTextElems: JSX.Element[] = [];
if (typeof headerTextUnion === "string") {
if (!util.isBlank(headerTextUnion)) {
@ -143,7 +139,6 @@ const BlockFrame_Header = ({ blockId, layoutModel, viewModel }: BlockFrameProps)
<div
className="block-frame-default-header"
ref={layoutModel?.dragHandleRef}
onDoubleClick={handleDoubleClick}
onContextMenu={(e) =>
handleHeaderContextMenu(e, blockData, viewModel, layoutModel?.onMagnifyToggle, layoutModel?.onClose)
}