Fix T97675: slow zoom in node editor with Continue zoom method

Speed increased by 10x, making it visually similar to other editors.

Differential Revision: https://developer.blender.org/D15209
This commit is contained in:
Patrick Huang
2022-06-22 16:53:15 +02:00
committed by Brecht Van Lommel
parent 6c3965c027
commit 9f4ec73101

View File

@@ -960,8 +960,8 @@ static void view_zoomdrag_apply(bContext *C, wmOperator *op)
const double time = PIL_check_seconds_timer();
const float time_step = (float)(time - vzd->timer_lastdraw);
dx *= time_step * 0.5f;
dy *= time_step * 0.5f;
dx *= time_step * 5.0f;
dy *= time_step * 5.0f;
vzd->timer_lastdraw = time;
}