From 6951fb370cd4574971bfecd0438bcb2984711f88 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Sun, 7 Nov 2021 14:42:27 +0000 Subject: [PATCH] fix events on top panel (#226) --- packages/tldraw/src/components/TopPanel/TopPanel.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/tldraw/src/components/TopPanel/TopPanel.tsx b/packages/tldraw/src/components/TopPanel/TopPanel.tsx index 85ec98fc3..8a62281c0 100644 --- a/packages/tldraw/src/components/TopPanel/TopPanel.tsx +++ b/packages/tldraw/src/components/TopPanel/TopPanel.tsx @@ -52,8 +52,13 @@ const StyledTopPanel = styled('div', { right: 0, display: 'flex', flexDirection: 'row', + pointerEvents: 'none', + '& > *': { + pointerEvents: 'all', + }, }) const StyledSpacer = styled('div', { flexGrow: 2, + pointerEvents: 'none', })