### Godot version

v4.1.stable.official [970459615]

### System information

Windows 10

### Issue description

Changing a RichTextLabel's text property while dragging the scrollbar causes releasing the mouse to not actually prevent further dragging. Technically it's more pervasive than this since the scrollbar stops reporting other mouse input events (stops being highlighted when hovered, can't release) in general when updating every frame. This works fine for 3.5. This is still broken for 4.2dev3.

### Steps to reproduce

Change a RichTextLabel's text property while dragging the scrollbar. MRP attached.

https://github.com/godotengine/godot/assets/3820082/99c961af-e31c-4dde-8fd5-061e2e9e5fdc


### Minimal reproduction project

[rtl-scrollbar-mrp.zip](https://github.com/godotengine/godot/files/12327813/rtl-scrollbar-mrp.zip)

return context_menu_enabled;
}
void RichTextLabel::set_shortcut_keys_enabled(bool p_enabled) {
	shortcut_keys_enabled = p_enabled;
}
bool RichTextLabel::is_shortcut_keys_enabled() const {
	return shortcut_keys_enabled;
}
PopupMenu *RichTextLabel::get_menu() const {
	if (!menu) {
		const_cast<RichTextLabel *>(this)->_generate_context_menu();
	}
	return menu;
}
bool RichTextLabel::is_menu_visible() const {
	return menu && menu->is_visible();
}
String RichTextLabel::get_selected_text() const {
	if (!selection.active || !selection.enabled) {
		return "";
	}
	String txt;
	int to_line = main->first_invalid_line.load();
	for (int i = 0; i < to_line; i++) {
		txt += _get_line_text(main, i, selection);
	}
	return txt;
}
void RichTextLabel::deselect() {