Skip to content

Conversation

@Scottmg1
Copy link

Before:
before
After:
after

I've also swapped the camera positions, but if you prefer it wasn't changed I can revert that.

@Scottmg1
Copy link
Author

I ended up not swapping the cameras, I see why they were swapped in the first place. 😅

@marcone
Copy link
Owner

marcone commented Dec 14, 2025

Note that I made the viewer scrollable, which should make the bottom videos in your "before" picture above accessible. Not sure how this interacts with this change.

Comment on lines +1167 to +1189
if (typeof currentsequence !== 'undefined') {
setTimeout(function() {
for (var i=0; i < 6;i++) {
var v = videoelems[i];
var c = canvaselems[i];

if (v.clientWidth > 0 && v.clientHeight > 0) {
c.width = v.clientWidth;
c.height = v.clientHeight;
}

if (v.style.visibility == "hidden") {
var ctx = c.getContext("2d");
if (v.classList.contains("flipped")) {
ctx.scale(-1, 1);
ctx.drawImage(v, 0, 0, -c.width, c.height);
} else {
ctx.drawImage(v, 0, 0, c.width, c.height);
}
}
}
}, 50);
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section is quite similar to the freezeVideoElems function. Could this be a common function or something?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The layout update path intentionally mirrors the existing freezeVideoElems flow so the behavior stays consistent, which is why you’re seeing similar code there.

@Scottmg1
Copy link
Author

Note that I made the viewer scrollable, which should make the bottom videos in your "before" picture above accessible. Not sure how this interacts with this change.

Created new pull request #1013 , tested and everything works as intended still.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants