Merge pull request #49028 from HaSa1002/fix-spin-slider-mouse-warp

This commit is contained in:
Hugo Locurcio 2022-06-07 20:44:27 +02:00 committed by GitHub
commit 7e7582cd57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -448,6 +448,7 @@ void EditorSpinSlider::_notification(int p_what) {
if (grabbing_spinner) {
grabber->hide();
Input::get_singleton()->set_mouse_mode(Input::MOUSE_MODE_VISIBLE);
Input::get_singleton()->warp_mouse(grabbing_spinner_mouse_pos);
grabbing_spinner = false;
grabbing_spinner_attempt = false;
}