fix: sidebar resizing while holding right-click
This commit is contained in:
parent
1d21d476d5
commit
99ed210d26
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ onMounted(() => {
|
||||||
|
|
||||||
if (resizableSidebar.value && widthResizer.value) {
|
if (resizableSidebar.value && widthResizer.value) {
|
||||||
widthResizer.value.addEventListener("pointerdown", (e) => {
|
widthResizer.value.addEventListener("pointerdown", (e) => {
|
||||||
|
if (e.button != 0) return;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
document.body.style.cursor = "ew-resize";
|
document.body.style.cursor = "ew-resize";
|
||||||
function handleMove(pointer: PointerEvent) {
|
function handleMove(pointer: PointerEvent) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue