mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-04 22:56:11 -05:00
UI: Limit preview scrolling
This prevents the preview from being scrolled on forever.
This commit is contained in:
@@ -4665,6 +4665,7 @@ void OBSBasic::ResizePreview(uint32_t cx, uint32_t cy)
|
||||
obs_get_video_info(&ovi);
|
||||
|
||||
if (isFixedScaling) {
|
||||
ui->preview->ClampScrollingOffsets();
|
||||
previewScale = ui->preview->GetScalingAmount();
|
||||
GetCenterPosFromFixedScale(
|
||||
int(cx), int(cy),
|
||||
|
||||
Reference in New Issue
Block a user