Merge pull request #2316 from pearcetm/scaled-crop-bugfix

partial bugfix for #2312
This commit is contained in:
Ian Gilman 2023-03-14 13:57:35 -07:00 committed by GitHub
commit 5f816246e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1962,6 +1962,9 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
if (sketchScale) {
clipPoint = clipPoint.times(sketchScale);
}
if (sketchTranslate) {
clipPoint = clipPoint.plus(sketchTranslate);
}
return clipPoint;
});
});