Skip to content

Commit ab3f888

Browse files
szaimennextcloud-command
authored andcommitted
Dashboard - fix touch layout
Signed-off-by: szaimen <szaimen@e.mail.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent 412888c commit ab3f888

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

apps/dashboard/js/dashboard.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/dashboard/js/dashboard.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/dashboard/src/App.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
<Draggable v-model="layout"
1313
class="panels"
14+
v-bind="{swapThreshold: 0.30, delay: 500, delayOnTouchOnly: true, touchStartThreshold: 3}"
1415
handle=".panel--header"
1516
@end="saveLayout">
1617
<div v-for="panelId in layout" :key="panels[panelId].id" class="panel">
@@ -51,6 +52,7 @@
5152
<Draggable v-model="layout"
5253
class="panels"
5354
tag="ol"
55+
v-bind="{swapThreshold: 0.30, delay: 500, delayOnTouchOnly: true, touchStartThreshold: 3}"
5456
handle=".draggable"
5557
@end="saveLayout">
5658
<li v-for="panel in sortedPanels" :key="panel.id">

0 commit comments

Comments
 (0)