mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
UI: Allow editing outside of inner preview bounds
This commit is contained in:
@@ -296,8 +296,7 @@ void OBSBasicPreview::mousePressEvent(QMouseEvent *event)
|
||||
float x = float(event->x()) - main->previewX;
|
||||
float y = float(event->y()) - main->previewY;
|
||||
|
||||
if (event->button() != Qt::LeftButton ||
|
||||
x < 0.0f || y < 0.0f || x > main->previewCX || y > main->previewCY)
|
||||
if (event->button() != Qt::LeftButton)
|
||||
return;
|
||||
|
||||
mouseDown = true;
|
||||
|
||||
Reference in New Issue
Block a user