Skip to content

Commit

Permalink
fix(web): allow mouse event for react-dnd (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
keiya01 authored Aug 28, 2023
1 parent 864d09a commit 2ed816b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/src/beta/utils/use-dnd/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ export * from "./drag";
export * from "./drop";

export const Provider: React.FC<{ children?: ReactNode }> = ({ children }) => (
<DndProvider backend={HTML5Backend}>{children}</DndProvider>
<DndProvider
backend={HTML5Backend}
options={{ enableMouseEvents: true, enableTouchEvents: true }}>
{children}
</DndProvider>
);

export const useDraggingItemType = () =>
Expand Down

0 comments on commit 2ed816b

Please sign in to comment.