fix: Prevent board from scrolling when it starts with non-left-click

pull/408/head
Maksim Eltyshev 3 years ago
parent bee199c13b
commit 7e2b74627c

@ -62,6 +62,11 @@ const Board = React.memo(
const handleMouseDown = useCallback(
(event) => {
// If button is defined and not equal to 0 (left click)
if (event.button) {
return;
}
if (event.target !== wrapper.current && !event.target.dataset.dragScroller) {
return;
}

Loading…
Cancel
Save