orkmode/ui
Levi Neely 0a06ca60bf Fix drag-to-refile: ListView stole the grip's drag
The grip used a bare MouseArea for the drag. Inside the ListView (a
Flickable), once the pointer moved past the drag threshold the ListView
stole the gesture for flicking, so the grip's positionChanged stopped
firing: the drop target was never resolved and release did nothing.

Replace the MouseArea with a DragHandler (target: null — it tracks, it
doesn't move the item) whose grabPermissions take the pointer grab and
refuse to yield it to the Flickable, so the drag is no longer stolen. It
reports centroid.scenePosition continuously, mapped to ListView content
coordinates via contentItem.mapFromScene, driving the same updateDrop/
commitDrop path. A HoverHandler keeps the hover affordance, and the grip
gets a slightly larger hit target.

QML compiles (AOT cache build of OutlineView). The drop resolution and
refile commit paths were already verified; this restores the gesture
that feeds them.
2026-10-02 16:57:18 +02:00
..
qml Fix drag-to-refile: ListView stole the grip's drag 2026-10-02 16:57:18 +02:00
src Add drag-and-drop structural moves with a live drop indicator 2026-10-02 16:00:54 +02:00
CMakeLists.txt Edit SCHEDULED/DEADLINE via a calendar date picker 2026-10-02 14:50:51 +02:00