Skip to content

Commit 8ee045e

Browse files
authored
Merge pull request #14 from Q42/bugfix/embed-pausewhenlargerthan
Make pauseWhenLargerThan on a video embed work again
2 parents d956a8d + 1a48507 commit 8ee045e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/svelte/virtual/Embed.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
if(is360) matrix = mainImage.camera.getMatrix(cX, cY, s, 1, rotX, rotY, rotZ, undefined, scaleX, scaleY).join(',');
112112
style = (is360 ? `transform:matrix3d(${matrix});` : `--x:${x}px;--y:${y}px;--s:${scale};`)
113113
+ (embed.opacity !== undefined && embed.opacity !== 1 ? `--opacity:${embed.opacity};` : '');
114-
if(embed.video?.pauseWhenSmallerThan && width) {
114+
if((embed.video?.pauseWhenSmallerThan || embed.video?.pauseWhenLargerThan) && width) {
115115
const wasPaused:boolean = paused;
116116
paused = shouldPause();
117117
if(_vid && printGL && (paused != wasPaused)) {

0 commit comments

Comments
 (0)