Skip to content

Commit

Permalink
fix(core): sidebar workspace list can't scroll on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
CatsJuice committed Mar 28, 2024
1 parent 7cd7582 commit ba48a82
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -94,7 +89,7 @@ const modifiers = [restrictToParentElement, restrictToVerticalAxis];

export const WorkspaceList = (props: WorkspaceListProps) => {
const sensors = useSensors(
useSensor(PointerSensor, {
useSensor(MouseSensor, {
activationConstraint: {
distance: 8,
},
Expand Down

0 comments on commit ba48a82

Please sign in to comment.