mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 13:12:42 +00:00
Stop popup release timeout on click.
This commit is contained in:
parent
39fc116c5f
commit
7f6c14522c
@ -589,6 +589,7 @@ void PopupMenu::_input_from_window_internal(const Ref<InputEvent> &p_event) {
|
||||
// This allows for opening the popup and triggering an action in a single mouse click.
|
||||
if (button_idx == MouseButton::LEFT || initial_button_mask.has_flag(mouse_button_to_mask(button_idx))) {
|
||||
if (b->is_pressed()) {
|
||||
during_grabbed_click = false;
|
||||
is_scrolling = is_layout_rtl() ? b->get_position().x < item_clickable_area.position.x : b->get_position().x > item_clickable_area.size.width;
|
||||
|
||||
if (!item_clickable_area.has_point(b->get_position())) {
|
||||
|
Loading…
Reference in New Issue
Block a user