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:
parent
2bc6dd94f5
commit
becf4afe85
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue