Skip to content

Commit

Permalink
chore: disable slider bar link item drag (#2010)
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmFly authored Apr 18, 2023
1 parent c895c18 commit 9406335
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/web/src/components/pure/workspace-slider-bar/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down

2 comments on commit 9406335

@vercel
Copy link

@vercel vercel bot commented on 9406335 Apr 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 9406335 Apr 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

affine-storybook – ./packages/component

affine-storybook.vercel.app
affine-storybook-git-master-toeverything.vercel.app
affine-storybook-toeverything.vercel.app

Please # to comment.