You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
surface_input has no pointer enter/leave, so a producer cannot clear hover state #5
Crate:gpui_interop 0.1.3 and 0.2.0 (src/input.rs).
The gateway reports moves, downs and ups; nothing tells a producer that the pointer left the surface. A viewport that highlights on hover (a gizmo handle, a navigation-cube face, a cursor hint) cannot clear that state except by guessing from a move's position — and on leave there may be no further move inside the surface at all.
GPUI already has the transition: on_hover(|hovered: &bool, ..) (bite-gp-authoring/src/elements/div.rs:1661), which fires on both edges.
delivered from an on_hover listener registered in attach() alongside the pointer ones. No position: the event says the pointer came or went, not where it is.
We carry this in a vendored copy.
Status (0.2.0, 2026-11-03): unchanged — src/input.rs is byte-identical
between 0.1.3 and 0.2.0, and the patch described here still applies
unchanged.
Fixed in 60fb085 (PR #6). PointerEnter and PointerLeave are emitted from on_hover; the engine hover suppression during a press or drag is documented on the variants.
Activity
Vanuan commentedon Nov 3, 2026
Fixed in
60fb085(PR #6).PointerEnterandPointerLeaveare emitted fromon_hover; the engine hover suppression during a press or drag is documented on the variants.