1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00

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

This commit is contained in:
Maksim Eltyshev 2023-02-25 15:09:46 +01:00
parent 2bc6dd94f5
commit becf4afe85

View file

@ -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;
}