This is an automated email from the ASF dual-hosted git repository.

mjumper pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/guacamole-client.git

commit ac6e501eff8b11f0c4b9a5bad653e237b979b14d
Merge: eb76322c2 57d3b1ec4
Author: Mike Jumper <[email protected]>
AuthorDate: Tue Oct 24 16:58:41 2023 -0700

    Merge 1.5.4 changes back to master.

 .../frontend/src/app/player/directives/player.js   | 75 +++++++++++++++++++++-
 .../src/app/settings/styles/history-player.css     |  4 ++
 2 files changed, 77 insertions(+), 2 deletions(-)

diff --cc guacamole/src/main/frontend/src/app/player/directives/player.js
index a239e0d2b,f3f5337bf..b864b0e93
--- a/guacamole/src/main/frontend/src/app/player/directives/player.js
+++ b/guacamole/src/main/frontend/src/app/player/directives/player.js
@@@ -77,10 -79,30 +79,34 @@@
   */
  angular.module('player').directive('guacPlayer', ['$injector', function 
guacPlayer($injector) {
  
 +    // Required services
 +    const keyEventDisplayService = $injector.get('keyEventDisplayService');
 +    const playerTimeService = $injector.get('playerTimeService');
 +
+     /**
+      * The number of milliseconds after the last detected mouse activity after
+      * which the associated CSS class should be removed.
+      *
+      * @type {number}
+      */
+     const MOUSE_CLEANUP_DELAY = 4000;
+ 
+     /**
+      * The number of milliseconds after the last detected mouse activity 
before
+      * the cleanup timer to remove the associated CSS class should be 
scheduled.
+      *
+      * @type {number}
+      */
+     const MOUSE_DEBOUNCE_DELAY = 250;
+ 
+     /**
+      * The number of milliseconds, after the debounce delay, before the mouse
+      * activity cleanup timer should run.
+      *
+      * @type {number}
+      */
+     const MOUSE_CLEANUP_TIMER_DELAY = MOUSE_CLEANUP_DELAY - 
MOUSE_DEBOUNCE_DELAY;
+ 
      const config = {
          restrict : 'E',
          templateUrl : 'app/player/templates/player.html'
@@@ -179,16 -186,28 +205,24 @@@
           */
          var resumeAfterSeekRequest = false;
  
+         /**
+          * A scheduled timer to clean up the mouse activity CSS class, or null
+          * if no timer is scheduled.
+          *
+          * @type {number}
+          */
+         var mouseActivityTimer = null;
+ 
          /**
 -         * Formats the given number as a decimal string, adding leading zeroes
 -         * such that the string contains at least two digits. The given number
 -         * MUST NOT be negative.
 -         *
 -         * @param {!number} value
 -         *     The number to format.
 +         * Return true if any batches of key event logs are available for this
 +         * recording, or false otherwise.
           *
 -         * @returns {!string}
 -         *     The decimal string representation of the given value, padded
 -         *     with leading zeroes up to a minimum length of two digits.
 +         * @return
 +         *     True if any batches of key event logs are avaiable for this
 +         *     recording, or false otherwise.
           */
 -        const zeroPad = function zeroPad(value) {
 -            return value > 9 ? value : '0' + value;
 +        $scope.hasTextBatches = function hasTextBatches () {
 +            return $scope.textBatches.length >= 0;
          };
  
          /**

Reply via email to