1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-02 20:15:24 +02:00

fix: Add Touch Delay to Draggable on Touch Pads (#4440)

This commit is contained in:
Michael Genson 2024-10-24 11:24:42 -05:00 committed by GitHub
parent 302002d630
commit fdb5ff9ec0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 27 additions and 2 deletions

View file

@ -97,7 +97,15 @@
@submit="saveLabelOrder"
@close="cancelLabelOrder">
<v-card height="fit-content" max-height="70vh" style="overflow-y: auto;">
<draggable v-if="localLabels" :value="localLabels" handle=".handle" class="my-2" @input="updateLabelOrder">
<draggable
v-if="localLabels"
:value="localLabels"
handle=".handle"
delay="250"
delay-on-touch-only
class="my-2"
@input="updateLabelOrder"
>
<div v-for="(labelSetting, index) in localLabels" :key="labelSetting.id">
<MultiPurposeLabelSection v-model="localLabels[index]" use-color />
</div>