From 22dc2f3d2c2cf0bcea569e0aa7e9ff73a96c3f8a Mon Sep 17 00:00:00 2001 From: Vina Martin Date: Wed, 25 Sep 2024 12:45:29 -0700 Subject: [PATCH] Allow disable auto hide when showControls --- src/js/view/view.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/view/view.js b/src/js/view/view.js index e2f1ee93..95f55cbd 100755 --- a/src/js/view/view.js +++ b/src/js/view/view.js @@ -409,10 +409,11 @@ const View = function($container){ } } - api.showControls = function (show) { + api.showControls = function (show, keepOpen) { if (show) { $playerRoot.removeClass("op-no-controls"); - setHide(false, true); + let autoHide = !keepOpen + setHide(false, autoHide); } else { $playerRoot.addClass("op-no-controls"); }