Browse Source

fixed scrolling in new ispector when using trackpad pan gesture

toger5 7 năm trước cách đây
mục cha
commit
0e015f6023
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      scene/main/viewport.cpp

+ 2 - 0
scene/main/viewport.cpp

@@ -1380,6 +1380,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;