diff options
author | toger5 <toger5@hotmail.de> | 2018-05-21 23:08:18 +0200 |
---|---|---|
committer | toger5 <toger5@hotmail.de> | 2018-07-04 22:04:30 +0200 |
commit | 8f5cd7076b403cb69e2c9c3aa5ba70bc5bcfcda6 (patch) | |
tree | 65a9d79466f26c3d63e054b0573205ecc83eb31b | |
parent | 7363be2575f9eefdd465dc2c85024e0a52f4017a (diff) |
spin_slider: dont show grabber when editing value with keyboard
-rw-r--r-- | editor/editor_spin_slider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_spin_slider.cpp b/editor/editor_spin_slider.cpp index 498671c4ab..f212b60c8c 100644 --- a/editor/editor_spin_slider.cpp +++ b/editor/editor_spin_slider.cpp @@ -211,7 +211,7 @@ void EditorSpinSlider::_notification(int p_what) { Rect2 grabber_rect = Rect2(ofs + gofs, svofs + 1, grabber_w, 2 * EDSCALE); draw_rect(grabber_rect, c); - bool display_grabber = (mouse_over_spin || mouse_over_grabber) && !grabbing_spinner; + bool display_grabber = (mouse_over_spin || mouse_over_grabber) && !grabbing_spinner && !value_input->is_visible(); if (grabber->is_visible() != display_grabber) { if (display_grabber) { grabber->show(); |