Fix moveToCorner method
If the class was contained the old code was removing it
This commit is contained in:
parent
ce5ff20d5b
commit
b3e02add3d
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue