diff --git a/modules/UI/recording/Recording.js b/modules/UI/recording/Recording.js index ecdb58355..6cdb5ccdd 100644 --- a/modules/UI/recording/Recording.js +++ b/modules/UI/recording/Recording.js @@ -201,10 +201,11 @@ function _showStopRecordingPrompt (recordingType) { */ function moveToCorner(selector, move) { let moveToCornerClass = "moveToCorner"; + let containsClass = selector.hasClass(moveToCornerClass); - if (move && !selector.hasClass(moveToCornerClass)) + if (move && !containsClass) selector.addClass(moveToCornerClass); - else + else if (!move && containsClass) selector.removeClass(moveToCornerClass); }