|
@ -157,11 +157,9 @@ const ListViewType = ( |
|
|
onMouseDown={(e) => { |
|
|
onMouseDown={(e) => { |
|
|
e.preventDefault(); |
|
|
e.preventDefault(); |
|
|
if (e.button === 1) { |
|
|
if (e.button === 1) { |
|
|
console.log('middle click'); |
|
|
|
|
|
setIsDragging(true); |
|
|
setIsDragging(true); |
|
|
} |
|
|
} |
|
|
if (e.button === 0 && isDragging) { |
|
|
if (e.button === 0 && isDragging) { |
|
|
console.log('left click'); |
|
|
|
|
|
setIsDragging(false); |
|
|
setIsDragging(false); |
|
|
} |
|
|
} |
|
|
}} |
|
|
}} |
|
|