Spinbox: don't ignore double clicks.
Fixes the problem with spinboxes not updating when clicking too fast.
This commit is contained in:
parent
e837b25f55
commit
dd4c2709e4
1 changed files with 0 additions and 2 deletions
|
@ -100,8 +100,6 @@ void SpinBox::_gui_input(const InputEvent& p_event) {
|
||||||
if (p_event.type==InputEvent::MOUSE_BUTTON && p_event.mouse_button.pressed) {
|
if (p_event.type==InputEvent::MOUSE_BUTTON && p_event.mouse_button.pressed) {
|
||||||
const InputEventMouseButton &mb=p_event.mouse_button;
|
const InputEventMouseButton &mb=p_event.mouse_button;
|
||||||
|
|
||||||
if (mb.doubleclick)
|
|
||||||
return; //ignore doubleclick
|
|
||||||
|
|
||||||
bool up = mb.y < (get_size().height/2);
|
bool up = mb.y < (get_size().height/2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue