Improve control lines dragging behavior

Fix control line not updating when dragging and allow dragging when
starting with the mouse cursor outside the preview image area.
This commit is contained in:
Lawrence Lee
2021-05-23 21:45:23 -07:00
parent 051d69331f
commit 56e634da81
2 changed files with 8 additions and 5 deletions

View File

@@ -540,7 +540,7 @@ void CropWindow::buttonPress (int button, int type, int bstate, int x, int y)
action_y = 0;
}
} else if (iarea->getToolMode () == TMHand) { // events outside of the image domain
} else if (iarea->getToolMode () == TMHand || iarea->getToolMode() == TMPerspective) { // events outside of the image domain
EditSubscriber *editSubscriber = iarea->getCurrSubscriber();
if (editSubscriber && editSubscriber->getEditingType() == ET_OBJECTS) {