### Godot version

4.0.beta16

### System information

macOS Monterey 12.3.1

### Issue description

Since Godot 4 beta 16, scrolling in a scene is very slow; it looks me a long time to reach the point I want.

Here is an example in Godot 4 beta 15:

https://user-images.githubusercontent.com/1923206/215263090-0996323f-fad5-46bf-9473-19c7754b9d69.mp4

Using Godot 4 beta 16:

https://user-images.githubusercontent.com/1923206/215263131-937e2a3c-a2c6-4d40-9a4f-c1404fb503fd.mp4

Sometimes I can scroll not too badly, but sometimes it looks like it is almost not moving.

I only have macOS to try this; I can't tell on Windows or Linux.


### Steps to reproduce

Open a scene and start to scroll.

### Minimal reproduction project

Any projects will have this issue.
return true;
				} else {
					Vector2 panning = scroll_vec * mb->get_factor();
					if (pan_axis == PAN_AXIS_HORIZONTAL) {
						panning = Vector2(panning.x + panning.y, 0);
					} else if (pan_axis == PAN_AXIS_VERTICAL) {
						panning = Vector2(0, panning.x + panning.y);
					} else if (mb->is_shift_pressed()) {
						panning = Vector2(panning.y, panning.x);
					}
					callback_helper(pan_callback, varray(-panning * scroll_speed, p_event));
					return true;
				}
			} else {
				if (mb->is_ctrl_pressed()) {
					Vector2 panning = scroll_vec * mb->get_factor();
					if (pan_axis == PAN_AXIS_HORIZONTAL) {
						panning = Vector2(panning.x + panning.y, 0);
					} else if (pan_axis == PAN_AXIS_VERTICAL) {
						panning = Vector2(0, panning.x + panning.y);
					} else if (mb->is_shift_pressed()) {
						panning = Vector2(panning.y, panning.x);
					}
					callback_helper(pan_callback, varray(-panning * scroll_speed, p_event));
					return true;
				} else if (!mb->is_shift_pressed()) {
					
					float zoom_factor = mb->get_factor() <= 0 ? 1.0 : mb->get_factor();
					zoom_factor = ((scroll_zoom_factor - 1.0) * zoom_factor) + 1.0;
					float zoom = (scroll_vec.x + scroll_vec.y) > 0 ? 1.0 / scroll_zoom_factor : scroll_zoom_factor;