From 94063352f5f4ef105ccaed790fde06005bea5c37 Mon Sep 17 00:00:00 2001 From: JimmFly Date: Tue, 18 Apr 2023 15:16:38 +0800 Subject: [PATCH] chore: disable slider bar link item drag (#2010) --- apps/web/src/components/pure/workspace-slider-bar/style.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/web/src/components/pure/workspace-slider-bar/style.ts b/apps/web/src/components/pure/workspace-slider-bar/style.ts index ed11c1c5f0..df8bb1fb8a 100644 --- a/apps/web/src/components/pure/workspace-slider-bar/style.ts +++ b/apps/web/src/components/pure/workspace-slider-bar/style.ts @@ -69,6 +69,12 @@ export const StyledLink = styled(Link)(() => { ':visited': { color: 'inherit', }, + userDrag: 'none', + userSelect: 'none', + appRegion: 'no-drag', + '-webkit-user-select': 'none', + '-webkit-user-drag': 'none', + '-webkit-app-region': 'no-drag', }; }); export const StyledNewPageButton = styled('button')(({ theme }) => {