From 65e8d4e3fd8ef8b60d51b0e1fa225cda340adee5 Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Thu, 15 Aug 2024 17:49:34 -0700 Subject: [PATCH] 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. --- frontend/app/block/blockframe.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/frontend/app/block/blockframe.tsx b/frontend/app/block/blockframe.tsx index f68ec8711..9b0010c50 100644 --- a/frontend/app/block/blockframe.tsx +++ b/frontend/app/block/blockframe.tsx @@ -122,10 +122,6 @@ const BlockFrame_Header = ({ blockId, layoutModel, viewModel }: BlockFrameProps) preIconButtonElem = ; } - 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)
handleHeaderContextMenu(e, blockData, viewModel, layoutModel?.onMagnifyToggle, layoutModel?.onClose) }