From: Suyeon Hwang Date: Tue, 20 Jun 2017 09:39:36 +0000 (+0900) Subject: Fix handling youtube player controls X-Git-Tag: accepted/tizen/4.0/unified/20171107.054724~1^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fvc-webview-js.git;a=commitdiff_plain;h=d91d0a6a309552709d987ca1b35bb70f0b00fb68 Fix handling youtube player controls Change-Id: I3d195d28751a3328e907b82784a5d0e62ffd9382 Signed-off-by: Suyeon Hwang (cherry picked from commit 5151cab9dcb4342caad3a9efe2a532c608511393) --- diff --git a/js/vc-webview.js b/js/vc-webview.js index 8c785df..923b503 100755 --- a/js/vc-webview.js +++ b/js/vc-webview.js @@ -717,9 +717,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]; @@ -1003,7 +1005,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' @@ -1643,4 +1645,4 @@ function vc_init() { }, false); } -vc_init(); \ No newline at end of file +vc_init();