### 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.
#include "view_panner.h"
#include "core/input/input.h"
#include "core/input/shortcut.h"
#include "core/os/keyboard.h"
bool ViewPanner::gui_input(const Ref<InputEvent> &p_event, Rect2 p_canvas_rect) {
	Ref<InputEventMouseButton> mb = p_event;
	if (mb.is_valid()) {
		Vector2 scroll_vec = Vector2((mb->get_button_index() == MouseButton::WHEEL_RIGHT) - (mb->get_button_index() == MouseButton::WHEEL_LEFT), (mb->get_button_index() == MouseButton::WHEEL_DOWN) - (mb->get_button_index() == MouseButton::WHEEL_UP));
		
		
		if (scroll_vec != Vector2() && mb->is_pressed()) {
			if (control_scheme == SCROLL_PANS) {
				if (mb->is_ctrl_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;
					callback_helper(zoom_callback, varray(zoom, mb->get_position(), p_event));