Skip to content

Commit

Permalink
Merge pull request #54 from fedellen/dnd-touch-action
Browse files Browse the repository at this point in the history
Dnd-touch-action
  • Loading branch information
fedellen authored Jan 7, 2024
2 parents 86b8e95 + c79729c commit 2ce6be9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "list-together-pwa",
"version": "1.2.1",
"version": "1.2.2",
"author": "Derek R. Sonnenberg <[email protected]>",
"license": "MIT",
"devDependencies": {
Expand Down
11 changes: 4 additions & 7 deletions web/src/components/list/ItemList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,10 @@ export default function ItemList({ list, sortedItems }: ItemListProps) {
const currentPrivileges = useCurrentPrivileges();

// TODO: Can we memoize `useSensors` to prevent rerendering. Getting useEffect console warnings when using `useSensors` with `useMemo`.
const pointerSensor = useSensor(PointerSensor, {
activationConstraint: {
distance: 0.01
}
});
const mouseSensor = useSensor(MouseSensor);
const touchSensor = useSensor(TouchSensor);
const options = { activationConstraint: { distance: 0.01 } };
const pointerSensor = useSensor(PointerSensor, options);
const mouseSensor = useSensor(MouseSensor, options);
const touchSensor = useSensor(TouchSensor, options);
const keyboardSensor = useSensor(KeyboardSensor, {
coordinateGetter: sortableKeyboardCoordinates
});
Expand Down

0 comments on commit 2ce6be9

Please sign in to comment.