Fix moving queue items in FireFox

This commit is contained in:
wvffle 2022-07-24 22:13:17 +00:00 committed by Georg Krause
parent f470e0649e
commit fa6a1575e2
2 changed files with 9 additions and 2 deletions

View File

@ -220,7 +220,11 @@ const headerStyle = computed(() => {
</div>
</div>
</div>
<div class="ui three stackable cards">
<!-- TODO (wvffle): Remove style when migrate away from fomantic -->
<div
class="ui three stackable cards"
style="z-index: 1; position: relative;"
>
<router-link
to="/"
class="ui card"

View File

@ -35,7 +35,10 @@ const onMousedown = (event: MouseEvent | TouchEvent) => {
if (!dragItem || !element.classList.contains('handle')) return
// Touch devices stop emitting touch events while container is scrolled
isTouch.value = event instanceof TouchEvent
// NOTE: FF does not support TouchEvent constructor
isTouch.value = window.TouchEvent
? event instanceof TouchEvent
: !(event instanceof MouseEvent)
const ghost = dragItem.cloneNode(true) as HTMLElement
ghost.classList.add('drag-ghost')