mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-21 01:13:37 +08:00
Fix panel snap highlight below viewport not visible
Fix dragging panel is possible with middle or right mouse button
This commit is contained in:
parent
e5e1ff8e3a
commit
13f01baba2
@ -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;
|
||||||
|
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user