mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-31 19:19:41 +02:00
fix: Add Touch Delay to Draggable on Touch Pads (#4440)
This commit is contained in:
parent
302002d630
commit
fdb5ff9ec0
7 changed files with 27 additions and 2 deletions
|
@ -5,6 +5,8 @@
|
||||||
<draggable
|
<draggable
|
||||||
:value="fields"
|
:value="fields"
|
||||||
handle=".handle"
|
handle=".handle"
|
||||||
|
delay="250"
|
||||||
|
delay-on-touch-only
|
||||||
v-bind="{
|
v-bind="{
|
||||||
animation: 200,
|
animation: 200,
|
||||||
group: 'recipe-instructions',
|
group: 'recipe-instructions',
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
v-if="recipe.recipeIngredient.length > 0"
|
v-if="recipe.recipeIngredient.length > 0"
|
||||||
v-model="recipe.recipeIngredient"
|
v-model="recipe.recipeIngredient"
|
||||||
handle=".handle"
|
handle=".handle"
|
||||||
|
delay="250"
|
||||||
|
delay-on-touch-only
|
||||||
v-bind="{
|
v-bind="{
|
||||||
animation: 200,
|
animation: 200,
|
||||||
group: 'recipe-ingredients',
|
group: 'recipe-ingredients',
|
||||||
|
|
|
@ -77,6 +77,8 @@
|
||||||
:disabled="!isEditForm"
|
:disabled="!isEditForm"
|
||||||
:value="value"
|
:value="value"
|
||||||
handle=".handle"
|
handle=".handle"
|
||||||
|
delay="250"
|
||||||
|
delay-on-touch-only
|
||||||
v-bind="{
|
v-bind="{
|
||||||
animation: 200,
|
animation: 200,
|
||||||
group: 'recipe-instructions',
|
group: 'recipe-instructions',
|
||||||
|
|
|
@ -53,7 +53,14 @@
|
||||||
|
|
||||||
<!-- Cookbook List -->
|
<!-- Cookbook List -->
|
||||||
<v-expansion-panels class="mt-2">
|
<v-expansion-panels class="mt-2">
|
||||||
<draggable v-model="cookbooks" handle=".handle" style="width: 100%" @change="actions.updateOrder()">
|
<draggable
|
||||||
|
v-model="cookbooks"
|
||||||
|
handle=".handle"
|
||||||
|
delay="250"
|
||||||
|
delay-on-touch-only
|
||||||
|
style="width: 100%"
|
||||||
|
@change="actions.updateOrder()"
|
||||||
|
>
|
||||||
<v-expansion-panel v-for="cookbook in cookbooks" :key="cookbook.id" class="my-2 left-border rounded">
|
<v-expansion-panel v-for="cookbook in cookbooks" :key="cookbook.id" class="my-2 left-border rounded">
|
||||||
<v-expansion-panel-header disable-icon-rotate class="headline">
|
<v-expansion-panel-header disable-icon-rotate class="headline">
|
||||||
<div class="d-flex align-center">
|
<div class="d-flex align-center">
|
||||||
|
|
|
@ -46,6 +46,8 @@
|
||||||
v-if="parsedIng.length > 0"
|
v-if="parsedIng.length > 0"
|
||||||
v-model="parsedIng"
|
v-model="parsedIng"
|
||||||
handle=".handle"
|
handle=".handle"
|
||||||
|
delay="250"
|
||||||
|
delay-on-touch-only
|
||||||
:style="{ width: '100%' }"
|
:style="{ width: '100%' }"
|
||||||
ghost-class="ghost"
|
ghost-class="ghost"
|
||||||
>
|
>
|
||||||
|
|
|
@ -100,6 +100,8 @@
|
||||||
<draggable
|
<draggable
|
||||||
tag="div"
|
tag="div"
|
||||||
handle=".handle"
|
handle=".handle"
|
||||||
|
delay="250"
|
||||||
|
delay-on-touch-only
|
||||||
:value="plan.meals"
|
:value="plan.meals"
|
||||||
group="meals"
|
group="meals"
|
||||||
:data-index="index"
|
:data-index="index"
|
||||||
|
|
|
@ -97,7 +97,15 @@
|
||||||
@submit="saveLabelOrder"
|
@submit="saveLabelOrder"
|
||||||
@close="cancelLabelOrder">
|
@close="cancelLabelOrder">
|
||||||
<v-card height="fit-content" max-height="70vh" style="overflow-y: auto;">
|
<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">
|
<div v-for="(labelSetting, index) in localLabels" :key="labelSetting.id">
|
||||||
<MultiPurposeLabelSection v-model="localLabels[index]" use-color />
|
<MultiPurposeLabelSection v-model="localLabels[index]" use-color />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue