@reuters-graphics/graphics-components 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
paused = !paused;
|
|
21
21
|
clickedOnPauseBtn = paused === true; // so video doesn't autoplay when coming into view again if paused previously
|
|
22
22
|
dispatch('pausePlayEvent', {
|
|
23
|
-
paused
|
|
24
|
-
clickedOnPauseBtn
|
|
23
|
+
paused,
|
|
24
|
+
clickedOnPauseBtn,
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
</script>
|
|
@@ -32,9 +32,14 @@
|
|
|
32
32
|
opacity: {controlsOpacity};
|
|
33
33
|
top: {controlsPosition === 'top left' || controlsPosition === 'top right'
|
|
34
34
|
? `${10}px`
|
|
35
|
+
: controlsPosition === 'center'
|
|
36
|
+
? `${(heightVideoContainer - controlsBorderOffset) / 2}px`
|
|
35
37
|
: `${heightVideoContainer - controlsBorderOffset}px`};
|
|
38
|
+
|
|
36
39
|
left: {controlsPosition === 'top left' || controlsPosition === 'bottom left'
|
|
37
40
|
? `${10}px`
|
|
41
|
+
: controlsPosition === 'center'
|
|
42
|
+
? `${(widthVideoContainer - controlsBorderOffset) / 2}px`
|
|
38
43
|
: `${widthVideoContainer - controlsBorderOffset}px`};
|
|
39
44
|
"
|
|
40
45
|
>
|