-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Mouse-related Issue in egui\examples\custom_window_frame #3809
Comments
When It seems to be related to checking and saving the |
I don't have a Windows computer, so I would appreciate if you could investigate and make a PR! |
@emilk If the double_clicked() part of the 102nd line is all commented out and executed, /*
// Interact with the title bar (drag to move window):
if title_bar_response.double_clicked() {
let is_maximized = ui.input(|i| i.viewport().maximized.unwrap_or(false));
ui.ctx()
.send_viewport_cmd(ViewportCommand::Maximized(!is_maximized));
}
// } else if title_bar_response.is_pointer_button_down_on() {
*/
if title_bar_response.is_pointer_button_down_on() {
ui.ctx().send_viewport_cmd(ViewportCommand::StartDrag);
} This issue is separate from the bug where, after using ui.ctx().send_viewport_cmd() to minimize, it still recognizes it as minimized, preventing dragging. Thanks, emilk. egui version: egui v0.25.0 - this issue bug. |
same #3791 |
Title: Mouse-related Issue in egui\examples\custom_window_frame
@emilk
Dear emilk,
In the egui\examples\custom_window_frame,
there is an issue with moving the window using the mouse.
Therefore, I made the following modification to line 109 in egui\examples\custom_window_frame\src\main.rs:
With this modification, the window moves correctly initially.
Even when changing to "maximized" by selecting the icon without double-clicking and returning to the original size,
it moves without any issues.
However, if the screen is changed to "maximized" by double-clicking and then returned to the original size,
attempting to move it again does not work at all.
Thank you,
emilk.
egui version: egui v0.25.0
OS: Windows 10
prev issue:
#3669
The text was updated successfully, but these errors were encountered: