Fix crashes in *_input functions

This commit is contained in:
Rafał Mikrut
2021-04-05 08:52:21 +02:00
parent a864a703ee
commit 504bc5cc67
43 changed files with 103 additions and 0 deletions
+2
View File
@@ -42,6 +42,8 @@ void ScrollBar::set_can_focus_by_default(bool p_can_focus) {
}
void ScrollBar::_gui_input(Ref<InputEvent> p_event) {
ERR_FAIL_COND(p_event.is_null());
Ref<InputEventMouseMotion> m = p_event;
if (!m.is_valid() || drag.active) {
emit_signal("scrolling");