fix(core): sidebar workspace list can't scroll on mobile (#6370)
This commit is contained in:
@@ -1,10 +1,5 @@
|
|||||||
import type { DragEndEvent } from '@dnd-kit/core';
|
import type { DragEndEvent } from '@dnd-kit/core';
|
||||||
import {
|
import { DndContext, MouseSensor, useSensor, useSensors } from '@dnd-kit/core';
|
||||||
DndContext,
|
|
||||||
PointerSensor,
|
|
||||||
useSensor,
|
|
||||||
useSensors,
|
|
||||||
} from '@dnd-kit/core';
|
|
||||||
import {
|
import {
|
||||||
restrictToParentElement,
|
restrictToParentElement,
|
||||||
restrictToVerticalAxis,
|
restrictToVerticalAxis,
|
||||||
@@ -94,7 +89,7 @@ const modifiers = [restrictToParentElement, restrictToVerticalAxis];
|
|||||||
|
|
||||||
export const WorkspaceList = (props: WorkspaceListProps) => {
|
export const WorkspaceList = (props: WorkspaceListProps) => {
|
||||||
const sensors = useSensors(
|
const sensors = useSensors(
|
||||||
useSensor(PointerSensor, {
|
useSensor(MouseSensor, {
|
||||||
activationConstraint: {
|
activationConstraint: {
|
||||||
distance: 8,
|
distance: 8,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user