Skip to content

Commit

Permalink
put back control on preview style. Works only with contain and scale-…
Browse files Browse the repository at this point in the history
…down
  • Loading branch information
fmiccolis committed Oct 1, 2022
1 parent 58eed50 commit bdca8f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/core.js
Expand Up @@ -427,7 +427,9 @@ const photoBooth = (function () {

api.startVideo(CameraDisplayMode.COUNTDOWN, retry);

if (config.preview.mode !== PreviewMode.NONE && config.preview.showFrame) {
if (config.preview.mode !== PreviewMode.NONE &&
(config.preview.style === PreviewStyle.CONTAIN || config.preview.style === PreviewStyle.SCALE_DOWN) &&
config.preview.showFrame) {
if (photoStyle === PhotoStyle.PHOTO && config.picture.take_frame) {
idPictureFrame.show();
} else if (photoStyle === PhotoStyle.COLLAGE && config.collage.take_frame === CollageFrameMode.ALWAYS) {
Expand Down

0 comments on commit bdca8f3

Please sign in to comment.