luci-base: fix click and drag handling
authorPaul Donald <redacted>
Wed, 28 Jan 2026 05:04:27 +0000 (06:04 +0100)
committerPaul Donald <redacted>
Thu, 29 Jan 2026 05:04:25 +0000 (06:04 +0100)
commit4d04877e0f013fd22bb184183bdaffe01c39a980
treee132e05509fbb3676025b397c4e5eaecb0b6edd9
parent30341aeba9c1a55fdc04a24e255b22f514018900
luci-base: fix click and drag handling

Previously when a table has the sortable property true, the
whole row was draggable but without any useful effect on desktop
or mobile. Only commencing the drag from the drag button worked
as intended. This interfered with text selections or other actions
in the table row.

Now the drag and touch events are bound to the drag button only.
The result is the same but the row contents are now selectable.

This change works on both desktop and touch only devices like
mobile.

Signed-off-by: Paul Donald <redacted>
modules/luci-base/htdocs/luci-static/resources/form.js
git clone https://git.99rst.org/PROJECT