1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

eframe: Mouse passthrough option (#2080)

This commit is contained in:
Michael Galos
2022-10-02 17:45:37 +11:00
committed by GitHub
parent 53ff83737b
commit 9901ad4bb0
2 changed files with 8 additions and 0 deletions

View File

@@ -383,6 +383,9 @@ mod glow_integration {
integration.egui_ctx.set_visuals(theme.egui_visuals());
gl_window.window().set_ime_allowed(true);
if self.native_options.mouse_passthrough {
gl_window.window().set_cursor_hittest(false).unwrap();
}
{
let event_loop_proxy = self.repaint_proxy.clone();