diff options
| author | Andreas Haas | 2017-02-14 00:54:59 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-18 20:09:55 +0100 |
| commit | 674a090e5917eab5b590563fb156ff90ea53fe31 (patch) | |
| tree | 9b0142a883c36cfe938fd3911b1e22a65babd298 | |
| parent | 38e86c8c244d37d2530fd9c89c520def8ea04767 (diff) | |
| download | godot-674a090e5917eab5b590563fb156ff90ea53fe31.tar.gz godot-674a090e5917eab5b590563fb156ff90ea53fe31.tar.zst godot-674a090e5917eab5b590563fb156ff90ea53fe31.zip | |
Spinbox: don't ignore double clicks.
Fixes the problem with spinboxes not updating when clicking too fast.
(cherry picked from commit dd4c2709e4a4f1abef558c5b3a4e4454db06410d)
| -rw-r--r-- | scene/gui/spin_box.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp index 194922441..7eeca6a3d 100644 --- a/scene/gui/spin_box.cpp +++ b/scene/gui/spin_box.cpp @@ -98,8 +98,6 @@ void SpinBox::_input_event(const InputEvent& p_event) { if (p_event.type==InputEvent::MOUSE_BUTTON && p_event.mouse_button.pressed) { const InputEventMouseButton &mb=p_event.mouse_button; - if (mb.doubleclick) - return; //ignore doubleclick bool up = mb.y < (get_size().height/2); |
