Merge pull request #19015 from toger5/fixed_scrolling_with_trackpad_in_new_inspector

fixed scrolling in new ispector when using trackpad pan gesture
This commit is contained in:
Max Hilbrunner 2018-07-05 00:22:06 +02:00 committed by GitHub
commit a8a318161b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1404,6 +1404,8 @@ void Viewport::_gui_call_input(Control *p_control, const Ref<InputEvent> &p_inpu
mb->get_button_index() == BUTTON_WHEEL_UP ||
mb->get_button_index() == BUTTON_WHEEL_LEFT ||
mb->get_button_index() == BUTTON_WHEEL_RIGHT));
Ref<InputEventPanGesture> pn = p_input;
cant_stop_me_now = pn.is_valid() || cant_stop_me_now;
bool ismouse = ev.is_valid() || Object::cast_to<InputEventMouseMotion>(*p_input) != NULL;