diff --git a/src/js/transient-button.js b/src/js/transient-button.js index 08da37a419..bc1c85ef96 100644 --- a/src/js/transient-button.js +++ b/src/js/transient-button.js @@ -53,7 +53,7 @@ class TransientButton extends Button { // When shown, the float button will be visible even if the user is inactive. // Clear this if there is any interaction. - player.on(['useractive', 'userinactive'], (e) => { + this.on(this.player_, ['useractive', 'userinactive'], (e) => { this.removeClass('force-display'); }); }