From 036ac72e3c40624e0fb581b3b1c13f8026f253f8 Mon Sep 17 00:00:00 2001 From: Alex Vale Date: Thu, 3 Mar 2022 01:53:23 +0000 Subject: [PATCH] fix: remove erroneous playbackRate check (#2106) * remove erroneous playbackRate check A playback rate != 1 causes shouldHidePlayerControls to erroneously return false. * Add change Co-authored-by: Alex --- README.md | 2 +- src/renderer/lib/state.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2aa1d829..9055c7d5 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ to be installed. For example on Mac, first install [XQuartz](http://www.xquartz.org/), then run: ``` -brew install wine mono +$ brew install wine mono ``` (Requires the [Homebrew](http://brew.sh/) package manager.) diff --git a/src/renderer/lib/state.js b/src/renderer/lib/state.js index cbdd54bd..098869ab 100644 --- a/src/renderer/lib/state.js +++ b/src/renderer/lib/state.js @@ -198,8 +198,7 @@ function shouldHidePlayerControls () { new Date().getTime() - this.playing.mouseStationarySince > 2000 && !this.playing.mouseInControls && !this.playing.isPaused && - this.playing.location === 'local' && - this.playing.playbackRate === 1 + this.playing.location === 'local' } async function load (cb) {