mirror of
https://github.com/we-promise/sure.git
synced 2026-04-13 17:14:05 +00:00
Revert "Bind touch events to drag handle only, not entire section"
This reverts commit 55ab9aed6e.
This commit is contained in:
@@ -46,6 +46,9 @@
|
||||
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">
|
||||
<div class="px-4 py-2 flex items-center justify-between">
|
||||
<div class="flex items-center gap-2">
|
||||
@@ -74,12 +77,7 @@
|
||||
<% end %>
|
||||
<button
|
||||
type="button"
|
||||
class="cursor-grab active:cursor-grabbing text-secondary hover:text-primary transition-colors p-0.5 lg:opacity-0 lg:group-hover:opacity-100"
|
||||
data-dashboard-sortable-target="handle"
|
||||
data-action="
|
||||
touchstart->dashboard-sortable#touchStart
|
||||
touchmove->dashboard-sortable#touchMove
|
||||
touchend->dashboard-sortable#touchEnd"
|
||||
class="cursor-grab active:cursor-grabbing text-secondary hover:text-primary transition-colors p-0.5 opacity-0 group-hover:opacity-100 hidden lg:block"
|
||||
aria-label="<%= t("pages.dashboard.drag_to_reorder") %>">
|
||||
<%= icon("grip-vertical", size: "sm") %>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user