Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(core): sidebar workspace list can't scroll on mobile (#6370)

CatsJuiced14552b5afd9
diff --git a/packages/frontend/component/src/components/workspace-list/index.tsx b/packages/frontend/component/src/components/workspace-list/index.tsx
index ecd4204e6c..1a22a7618c 100644
--- a/packages/frontend/component/src/components/workspace-list/index.tsx
+++ b/packages/frontend/component/src/components/workspace-list/index.tsx
@@ -1,10 +1,5 @@
import type { DragEndEvent } from '@dnd-kit/core';
-import {
- DndContext,
- PointerSensor,
- useSensor,
- useSensors,
-} from '@dnd-kit/core';
+import { DndContext, MouseSensor, useSensor, useSensors } from '@dnd-kit/core';
import {
restrictToParentElement,
restrictToVerticalAxis,
@@ -94,7 +89,7 @@ const modifiers = [restrictToParentElement, restrictToVerticalAxis];
export const WorkspaceList = (props: WorkspaceListProps) => {
const sensors = useSensors(
- useSensor(PointerSensor, {
+ useSensor(MouseSensor, {
activationConstraint: {
distance: 8,
},