Skip to content

Commit

Permalink
Revert "fix: dragging course list in timetable for mobile" (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustChew authored Sep 1, 2024
2 parents 55eed31 + 7c707b0 commit daf9aaa
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/components/Timetable/TimetableCourseList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ import {
useSensor,
useSensors,
DragEndEvent,
MouseSensor,
TouchSensor,
} from "@dnd-kit/core";
import {
arrayMove,
Expand Down Expand Up @@ -266,17 +264,7 @@ export const TimetableCourseList = ({
[displayCourseData],
);
const sensors = useSensors(
useSensor(MouseSensor, {
activationConstraint: {
distance: 8,
},
}),
useSensor(TouchSensor, {
activationConstraint: {
delay: 0,
tolerance: 8,
},
}),
useSensor(PointerSensor),
useSensor(KeyboardSensor, {
coordinateGetter: sortableKeyboardCoordinates,
}),
Expand Down

0 comments on commit daf9aaa

Please sign in to comment.