GUACAMOLE-896: Ensure "seeking" class not erroneously assigned if seek() finishes immediately.

This commit is contained in:
Michael Jumper
2022-02-11 17:09:18 -08:00
parent 2c8bc58402
commit b8da13243d

View File

@@ -211,6 +211,9 @@
// Seek within recording if slider is moved
positionSlider.onchange = function sliderPositionChanged() {
// Seek is in progress
player.className = 'seeking';
// Request seek
recording.seek(positionSlider.value, function seekComplete() {
@@ -219,9 +222,6 @@
});
// Seek is in progress
player.className = 'seeking';
};
})();