ts fix
This commit is contained in:
@@ -177,6 +177,7 @@ export default function SubtitleOverlay({ playerRef, subtitleUrl }: Props) {
|
|||||||
if (!video) return
|
if (!video) return
|
||||||
|
|
||||||
function update() {
|
function update() {
|
||||||
|
if (!video) return
|
||||||
const { top: fitTop, bottom: fitBottom } = getVideoFitOffsets(video)
|
const { top: fitTop, bottom: fitBottom } = getVideoFitOffsets(video)
|
||||||
if (subtitlePosition === 'bottom') {
|
if (subtitlePosition === 'bottom') {
|
||||||
setOffset(Math.max(128, fitBottom + 32))
|
setOffset(Math.max(128, fitBottom + 32))
|
||||||
|
|||||||
Reference in New Issue
Block a user