mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 09:13: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(
|
const handleMouseDown = useCallback(
|
||||||
(event) => {
|
(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) {
|
if (event.target !== wrapper.current && !event.target.dataset.dragScroller) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user