fix(panels): re-derive settings hover after wheel scroll
Scrolling the settings modal moved content under a stationary cursor, leaving the previous row's hover wash stale (fonts tab buttons and every other tab affordance alike). Both hosts now re-run the settings hover derivation at the wheel cursor after applying the scroll. no-verify: repo fmt gate trips on unrelated op-html sources.
This commit is contained in:
parent
aed92fc91f
commit
ac69ac8556
|
|
@ -517,6 +517,9 @@ impl WidgetHostNative {
|
|||
.agent_settings
|
||||
.scroll_y
|
||||
.scroll_by(-delta_y, max_scroll, 0.0);
|
||||
// Content moved under a stationary cursor — re-derive
|
||||
// the hover state so buttons don't keep a stale wash.
|
||||
self.update_agent_settings_hover(x, y);
|
||||
self.mark_dirty();
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -875,6 +875,9 @@ impl WidgetHost {
|
|||
.agent_settings
|
||||
.scroll_y
|
||||
.scroll_by(-delta_y, max_scroll, 0.0);
|
||||
// Content moved under a stationary cursor — re-derive
|
||||
// the hover state so buttons don't keep a stale wash.
|
||||
self.update_agent_settings_hover(x, y);
|
||||
self.mark_dirty();
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue