Merge "Fix handling youtube player controls" into tizen_4.0
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 6 Nov 2017 09:43:46 +0000 (09:43 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Mon, 6 Nov 2017 09:43:46 +0000 (09:43 +0000)
js/vc-webview.js

index 8f1f997..468eccd 100755 (executable)
@@ -726,9 +726,11 @@ function vc_remove_hints() {
 /**
  * vc_hide_hints function hides the hints from the screen. Hints elements still exist
  */
-function vc_hide_hints() {
+function vc_hide_hints(focusedExist) {
        /* Custom pre process to hide hints */
-       vc_custom_pre_hide_hints();
+       if (true != focusedExist) {
+               vc_custom_pre_hide_hints();
+       }
 
        for (var i = 0; i < vc_visible_hints.length; i++) {
                var hint = vc_visible_hints[i];
@@ -1012,7 +1014,7 @@ function vc_do_action(targetElem, numberTag, value) {
                if (vc_flag_conflict) {
                        vc_remove_highlight(numberTag.textContent.trim());
                }
-               vc_hide_hints();
+               vc_hide_hints(true);
        } else {
                position = elem.getClientRects()[0];
                effect.style.left = (position.left - 35) + 'px'
@@ -1663,4 +1665,4 @@ function vc_init() {
        }, false);
 }
 
-vc_init();
\ No newline at end of file
+vc_init();