Fix panel snap highlight below viewport not visible

Fix dragging panel is possible with middle or right mouse button
This commit is contained in:
JannisX11 2023-04-14 22:05:18 +02:00
parent e5e1ff8e3a
commit 13f01baba2
2 changed files with 3 additions and 0 deletions

View File

@ -216,6 +216,7 @@
bottom: 0; bottom: 0;
right: 0; right: 0;
left: 0; left: 0;
z-index: 6;
} }
#center[snapside=top]::after { #center[snapside=top]::after {
bottom: unset; bottom: unset;
@ -243,6 +244,7 @@
background-color: var(--color-accent); background-color: var(--color-accent);
opacity: 0.1; opacity: 0.1;
height: 64px; height: 64px;
z-index: 6;
} }
#center[snapside=bottom]::before { #center[snapside=bottom]::before {
top: unset; top: unset;

View File

@ -135,6 +135,7 @@ class Panel extends EventSystem {
addEventListeners(this.handle.firstElementChild, 'mousedown touchstart', e1 => { addEventListeners(this.handle.firstElementChild, 'mousedown touchstart', e1 => {
if (e1.which == 2 || e1.which == 3) return;
convertTouchEvent(e1); convertTouchEvent(e1);
let started = false; let started = false;
let position_before = this.slot == 'float' let position_before = this.slot == 'float'