Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions frontend/components/Domain/QueryFilterBuilder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<draggable
:value="fields"
handle=".handle"
delay="250"
delay-on-touch-only
v-bind="{
animation: 200,
group: 'recipe-instructions',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
v-if="recipe.recipeIngredient.length > 0"
v-model="recipe.recipeIngredient"
handle=".handle"
delay="250"
delay-on-touch-only
v-bind="{
animation: 200,
group: 'recipe-ingredients',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
:disabled="!isEditForm"
:value="value"
handle=".handle"
delay="250"
delay-on-touch-only
v-bind="{
animation: 200,
group: 'recipe-instructions',
Expand Down
9 changes: 8 additions & 1 deletion frontend/pages/g/_groupSlug/cookbooks/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@

<!-- Cookbook List -->
<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-header disable-icon-rotate class="headline">
<div class="d-flex align-center">
Expand Down
2 changes: 2 additions & 0 deletions frontend/pages/g/_groupSlug/r/_slug/ingredient-parser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
v-if="parsedIng.length > 0"
v-model="parsedIng"
handle=".handle"
delay="250"
delay-on-touch-only
:style="{ width: '100%' }"
ghost-class="ghost"
>
Expand Down
2 changes: 2 additions & 0 deletions frontend/pages/household/mealplan/planner/edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@
<draggable
tag="div"
handle=".handle"
delay="250"
delay-on-touch-only
:value="plan.meals"
group="meals"
:data-index="index"
Expand Down
10 changes: 9 additions & 1 deletion frontend/pages/shopping-lists/_id.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Loading