mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-29 17:55:45 +01:00
Each built item row of a collection declares a hover-only part over its rect, above the collection's background and below its other parts and the row's own shapes. Sensing reports every root's own parts under the pointer, on top or not (pointer::Under::parts, read with pointer::parts_under), and a memoized view's Sensed includes those of its roots. The collection takes a row's hovered and pointer-over state, the hover lead and the rest wait from the row part under the pointer instead of reading the hover position, so a move within one row replays a view around the list and a move onto another row runs it. The edge band still reads the hover position: it is drawn at the line nearest the pointer. Trials: a list of 10 and of 40 rows in a memoized view replays on moves within a row, runs once on a move to another row, and the hover fill follows; a press and its release, a wheel over a list, and a modifier change under the pointer run the view; a replayed hovered view keeps its cursor; a tooltip runs its view at the wake and when its layer first paints; Cx::hover_pos reads the point over its part only and marks it as following the pointer for the pointer-move gate.