eframe: Mouse passthrough option (#2080)

This commit is contained in:
Michael Galos
2022-10-02 08:45:37 +02:00
committed by GitHub
parent 53ff83737b
commit 9901ad4bb0
2 changed files with 8 additions and 0 deletions
+3
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();