Desktop: Resize issue mitigation, scroll speed adjustment and duplicate pointer move event filtering (#3424)

* mitigate resizing issue on mac and windows

* adjust scroll speed for mac and win

* fixup

* filter out duplicate mouse move events
This commit is contained in:
Timon
2025-11-27 16:18:52 +00:00
committed by GitHub
parent 8cebde76e2
commit f4608a6e40
4 changed files with 25 additions and 5 deletions
@@ -28,6 +28,11 @@ impl CefContext for SingleThreadedCefContext {
let host = self.browser.host().unwrap();
host.set_zoom_level(view_info.zoom());
host.was_resized();
// Fix for CEF not updating the view after resize on windows and mac
// TODO: remove once https://github.com/chromiumembedded/cef/issues/3822 is fixed
#[cfg(any(target_os = "windows", target_os = "macos"))]
host.invalidate(cef::PaintElementType::default());
}
fn send_web_message(&self, message: Vec<u8>) {