mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 01:11:23 +03:00
fix: Prevent board from scrolling when it starts with non-left-click
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user