Help and docs
Sign in

R56 feat: add hover events, hover: classes, and scroll hit-testing fixes

Browse files
grindlemire 24d 60 files +2755 ~94 -1
Landed bygrindlemireas 050cdd31 · with 7 other reviews See in history

Add opt-in pointer motion (WithMouseMotion) with a MouseMove action,
onMouseEnter/onMouseLeave callbacks, and hover: color/text-style class
variants. Hover tracks elements by tree path (or key) so re-renders never
re-fire callbacks, re-checks once after input-driven renders, and works
inside modals, scrolled containers, and component tags.

Fix hit testing in scrollable containers (ElementAt, ContainsPoint),
bubble mouse events to the nearest scrollable ancestor, and keep scroll
offsets across re-renders. Report drags on all platforms.

Refs #178