Merge pull request #63083 from madmiraal/fix-56336
This commit is contained in:
commit
168ee3e6c4
3 changed files with 5 additions and 5 deletions
|
@ -439,7 +439,7 @@ void Camera2D::clear_current() {
|
||||||
void Camera2D::set_limit(Side p_side, int p_limit) {
|
void Camera2D::set_limit(Side p_side, int p_limit) {
|
||||||
ERR_FAIL_INDEX((int)p_side, 4);
|
ERR_FAIL_INDEX((int)p_side, 4);
|
||||||
limit[p_side] = p_limit;
|
limit[p_side] = p_limit;
|
||||||
update();
|
_update_scroll();
|
||||||
}
|
}
|
||||||
|
|
||||||
int Camera2D::get_limit(Side p_side) const {
|
int Camera2D::get_limit(Side p_side) const {
|
||||||
|
|
|
@ -90,8 +90,8 @@ private:
|
||||||
Window *root = nullptr;
|
Window *root = nullptr;
|
||||||
|
|
||||||
uint64_t tree_version = 1;
|
uint64_t tree_version = 1;
|
||||||
double physics_process_time = 1.0;
|
double physics_process_time = 0.0;
|
||||||
double process_time = 1.0;
|
double process_time = 0.0;
|
||||||
bool accept_quit = true;
|
bool accept_quit = true;
|
||||||
bool quit_on_go_back = true;
|
bool quit_on_go_back = true;
|
||||||
|
|
||||||
|
|
|
@ -3139,7 +3139,7 @@ TEST_CASE("[SceneTree][TextEdit] viewport") {
|
||||||
v_scroll = text_edit->get_v_scroll();
|
v_scroll = text_edit->get_v_scroll();
|
||||||
SEND_GUI_MOUSE_BUTTON_EVENT(text_edit, Point2i(10, 10), MouseButton::WHEEL_DOWN, MouseButton::WHEEL_DOWN, Key::NONE);
|
SEND_GUI_MOUSE_BUTTON_EVENT(text_edit, Point2i(10, 10), MouseButton::WHEEL_DOWN, MouseButton::WHEEL_DOWN, Key::NONE);
|
||||||
text_edit->notification(TextEdit::NOTIFICATION_INTERNAL_PHYSICS_PROCESS);
|
text_edit->notification(TextEdit::NOTIFICATION_INTERNAL_PHYSICS_PROCESS);
|
||||||
CHECK(text_edit->get_v_scroll() > v_scroll);
|
CHECK(text_edit->get_v_scroll() >= v_scroll);
|
||||||
SEND_GUI_MOUSE_BUTTON_EVENT(text_edit, Point2i(10, 10), MouseButton::WHEEL_UP, MouseButton::WHEEL_UP, Key::NONE);
|
SEND_GUI_MOUSE_BUTTON_EVENT(text_edit, Point2i(10, 10), MouseButton::WHEEL_UP, MouseButton::WHEEL_UP, Key::NONE);
|
||||||
text_edit->notification(TextEdit::NOTIFICATION_INTERNAL_PHYSICS_PROCESS);
|
text_edit->notification(TextEdit::NOTIFICATION_INTERNAL_PHYSICS_PROCESS);
|
||||||
CHECK(text_edit->get_v_scroll() == v_scroll);
|
CHECK(text_edit->get_v_scroll() == v_scroll);
|
||||||
|
@ -3148,7 +3148,7 @@ TEST_CASE("[SceneTree][TextEdit] viewport") {
|
||||||
text_edit->set_v_scroll_speed(10000);
|
text_edit->set_v_scroll_speed(10000);
|
||||||
SEND_GUI_MOUSE_BUTTON_EVENT(text_edit, Point2i(10, 10), MouseButton::WHEEL_DOWN, MouseButton::WHEEL_DOWN, Key::NONE);
|
SEND_GUI_MOUSE_BUTTON_EVENT(text_edit, Point2i(10, 10), MouseButton::WHEEL_DOWN, MouseButton::WHEEL_DOWN, Key::NONE);
|
||||||
text_edit->notification(TextEdit::NOTIFICATION_INTERNAL_PHYSICS_PROCESS);
|
text_edit->notification(TextEdit::NOTIFICATION_INTERNAL_PHYSICS_PROCESS);
|
||||||
CHECK(text_edit->get_v_scroll() > v_scroll);
|
CHECK(text_edit->get_v_scroll() >= v_scroll);
|
||||||
SEND_GUI_MOUSE_BUTTON_EVENT(text_edit, Point2i(10, 10), MouseButton::WHEEL_UP, MouseButton::WHEEL_UP, Key::NONE);
|
SEND_GUI_MOUSE_BUTTON_EVENT(text_edit, Point2i(10, 10), MouseButton::WHEEL_UP, MouseButton::WHEEL_UP, Key::NONE);
|
||||||
text_edit->notification(TextEdit::NOTIFICATION_INTERNAL_PHYSICS_PROCESS);
|
text_edit->notification(TextEdit::NOTIFICATION_INTERNAL_PHYSICS_PROCESS);
|
||||||
CHECK(text_edit->get_v_scroll() == v_scroll);
|
CHECK(text_edit->get_v_scroll() == v_scroll);
|
||||||
|
|
Loading…
Reference in a new issue