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.
|
// 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 (button_idx == MouseButton::LEFT || initial_button_mask.has_flag(mouse_button_to_mask(button_idx))) {
|
||||||
if (b->is_pressed()) {
|
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;
|
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())) {
|
if (!item_clickable_area.has_point(b->get_position())) {
|
||||||
|
|
Loading…
Reference in New Issue