mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Fix fullscreen hotkey regression.
This commit is contained in:
parent
68341d6441
commit
e8f8930932
1 changed files with 2 additions and 3 deletions
|
@ -33,7 +33,6 @@
|
||||||
.shaka-video-container:-webkit-full-screen {
|
.shaka-video-container:-webkit-full-screen {
|
||||||
max-height: none !important;
|
max-height: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -200,7 +199,7 @@ export default {
|
||||||
|
|
||||||
videoEl.addEventListener("ratechange", () => {
|
videoEl.addEventListener("ratechange", () => {
|
||||||
this.setPreference("rate", videoEl.playbackRate);
|
this.setPreference("rate", videoEl.playbackRate);
|
||||||
})
|
});
|
||||||
|
|
||||||
videoEl.addEventListener("ended", () => {
|
videoEl.addEventListener("ended", () => {
|
||||||
if (!this.selectedAutoLoop && this.selectedAutoPlay && this.video.relatedStreams.length > 0) {
|
if (!this.selectedAutoLoop && this.selectedAutoPlay && this.video.relatedStreams.length > 0) {
|
||||||
|
@ -315,7 +314,7 @@ export default {
|
||||||
const videoEl = self.$refs.videoEl;
|
const videoEl = self.$refs.videoEl;
|
||||||
switch (handler.key) {
|
switch (handler.key) {
|
||||||
case "f":
|
case "f":
|
||||||
self.ui.getControls().toggleFullScreen();
|
self.$ui.getControls().toggleFullScreen();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
break;
|
break;
|
||||||
case "m":
|
case "m":
|
||||||
|
|
Loading…
Reference in a new issue