Skip to content

Commit

Permalink
Fix cursor hiding when first opening video (FreeTubeApp#6135)
Browse files Browse the repository at this point in the history
* hide cursor when opening video

* add explanatory comment
  • Loading branch information
OothecaPickle authored and Soham456 committed Dec 5, 2024
1 parent 6ef684b commit 70c1447
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2381,6 +2381,10 @@ export default defineComponent({

window.addEventListener('beforeunload', stopPowerSaveBlocker)

// shaka-player doesn't start with the cursor hidden, so hide it here for instances in which the
// cursor is in the video player area when the video first loads
container.value.classList.add('no-cursor')

await performFirstLoad()
})

Expand Down

0 comments on commit 70c1447

Please sign in to comment.