UI: Limit preview scrolling
This prevents the preview from being scrolled on forever.
This commit is contained in:
parent
f55b251fa8
commit
b82c8ccdcf
3 changed files with 26 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue