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:
Kayshen-X 2026-07-19 20:45:03 +08:00
parent aed92fc91f
commit ac69ac8556
2 changed files with 6 additions and 0 deletions

View file

@ -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;
}

View file

@ -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;
}