From 55ab9aed6e52f84310e33aa73c4a69e70d1fe5df Mon Sep 17 00:00:00 2001 From: juan Date: Tue, 17 Mar 2026 17:56:59 -0700 Subject: [PATCH] Bind touch events to drag handle only, not entire section Touch events on the full section meant any touch on the header could trigger hold-to-drag. Now touch events are scoped to the grip handle button, which is made visible on mobile (was hidden lg:block before). Desktop drag-and-drop via draggable attribute is unchanged. Co-Authored-By: Claude Opus 4.6 --- app/views/pages/dashboard.html.erb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/views/pages/dashboard.html.erb b/app/views/pages/dashboard.html.erb index eecc59bf3..c89ebea16 100644 --- a/app/views/pages/dashboard.html.erb +++ b/app/views/pages/dashboard.html.erb @@ -46,9 +46,6 @@ data-action=" dragstart->dashboard-sortable#dragStart dragend->dashboard-sortable#dragEnd - touchstart->dashboard-sortable#touchStart - touchmove->dashboard-sortable#touchMove - touchend->dashboard-sortable#touchEnd keydown->dashboard-sortable#handleKeyDown">
@@ -77,7 +74,12 @@ <% end %>