Skip to content

Commit 77c444b

Browse files
committed
Fix inverted vertical zoom interaction in animation curve editor
1 parent 4c4e673 commit 77c444b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/animation_bezier_editor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ void AnimationBezierTrackEdit::_zoom_callback(float p_zoom_factor, Vector2 p_ori
16551655
Ref<InputEventWithModifiers> iewm = p_event;
16561656
if (iewm.is_valid() && iewm->is_alt_pressed()) {
16571657
// Alternate zoom (doesn't affect timeline).
1658-
timeline_v_zoom = CLAMP(timeline_v_zoom * p_zoom_factor, 0.000001, 100000);
1658+
timeline_v_zoom = CLAMP(timeline_v_zoom / p_zoom_factor, 0.000001, 100000);
16591659
} else {
16601660
float zoom_factor = p_zoom_factor > 1.0 ? AnimationTimelineEdit::SCROLL_ZOOM_FACTOR_IN : AnimationTimelineEdit::SCROLL_ZOOM_FACTOR_OUT;
16611661
timeline->_zoom_callback(zoom_factor, p_origin, p_event);

0 commit comments

Comments
 (0)