Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double-click issue #50

Open
EvoTeamDevelop opened this issue Sep 28, 2022 · 3 comments
Open

Double-click issue #50

EvoTeamDevelop opened this issue Sep 28, 2022 · 3 comments

Comments

@EvoTeamDevelop
Copy link

For some reason, when running app on macOs or Android it is required to use double-click when using egui buttons, slider, combo-boxes or etc. But this is not happening all the time, but only time to time, so it is really strange why it can be happening.

Does anybody else is also facing this issue?

@EvoTeamDevelop
Copy link
Author

Sorry, double-checked the issue is happening only for MacOs. When building the apk for Android everything works fine, but yeah for MacOs the issue is still actual

@zehreken
Copy link

I have a similar issue on macOS. One thing I noticed is if I focus to another window and back to my program, the problem gets fixed. I couldn't reproduce the issue in the examples though. Does your program have any asynchronous features of Rust?

@ocboogie
Copy link

ocboogie commented Jan 3, 2023

I can reproduce it on Mac with

use macroquad::prelude::*;

#[macroquad::main("egui with macroquad")]
async fn main() {
    loop {
        clear_background(WHITE);

        egui_macroquad::ui(|egui_ctx| {
            egui::Window::new("Issue #50").show(egui_ctx, |ui| {
                if ui.button("Click").clicked() {
                    dbg!();
                }
            });
        });

        egui_macroquad::draw();

        next_frame().await;
    }
}

Versions:

egui = "0.19.1"
egui-macroquad = "0.12.0"
macroquad = "0.3.24"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants