From df53e53f56e6615556ff55d5de63b7c9e0b45ea1 Mon Sep 17 00:00:00 2001 From: MinSoo Kim Date: Tue, 7 Feb 2017 01:18:20 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC=20=ED=99=98?= =?UTF-8?q?=EA=B2=BD=EC=97=90=EC=84=9C=EB=8F=84=20=ED=8E=B8=ED=95=98?= =?UTF-8?q?=EA=B2=8C=20=EC=9D=BD=EC=9D=84=20=EC=88=98=20=EC=9E=88=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=BD=94=EB=93=9C=20=EC=B6=94=EA=B0=80.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/message/skins/simple_world/common_header.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/message/skins/simple_world/common_header.html b/modules/message/skins/simple_world/common_header.html index a01471629..e92d2b510 100644 --- a/modules/message/skins/simple_world/common_header.html +++ b/modules/message/skins/simple_world/common_header.html @@ -1,3 +1,6 @@ + +{Context::addMetaTag("viewport", "width=device-width, user-scalable=yes")} + {@ $material_colors = array( From bfc9fb5852129857ceb9c79b3502dd24b2c70c40 Mon Sep 17 00:00:00 2001 From: MinSoo Kim Date: Sun, 12 Feb 2017 11:07:52 +0900 Subject: [PATCH 2/2] Fix layout - not to fire fade in/out actions on the iOS devices. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit iOS 기기에서 햄버거 메뉴가 여러번 나타났다 사라지는 오류가 있었기에 수정합니다. --- layouts/simple_world/layout.js | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/layouts/simple_world/layout.js b/layouts/simple_world/layout.js index 991671b26..6e2798cbf 100644 --- a/layouts/simple_world/layout.js +++ b/layouts/simple_world/layout.js @@ -31,29 +31,48 @@ $(function() }); }); - /* detect scrolling up or down to hide or show hamburger menu */ + /* detect scrolling up or down to hide or show the hamburger menu */ var previousScroll = 0; + var simpleScrolled = false; + var scrollThreshold = 5; + + /* detect window scrolling */ $( window ).scroll(function() { - var currentScroll = $(this).scrollTop(); + simpleScrolled = true; + }); + + /* refresh window scrolling per 250 ms, and show/hide the menu */ + setInterval(function() + { + if (simpleScrolled) { + display_menu(); + simpleScrolled = false; + } + }, 250); + + /* function to show/hide the menu */ + var display_menu = function() + { + var currentScroll = $(window).scrollTop(); + if (currentScroll > previousScroll) { - if($("#layout_menu_toggle").css( 'position' ) === 'fixed' && $("#layout_menu_toggle").attr('data-scroll-down') !== 'true') + if($("#layout_menu_toggle").css( 'position' ) === 'fixed') { - $("#layout_menu_toggle").attr('data-scroll-down', 'true'); $("#layout_menu_toggle").fadeOut(); } } else { - if($("#layout_menu_toggle").css( 'position' ) === 'fixed' && $("#layout_menu_toggle").attr('data-scroll-down') === 'true') + if($("#layout_menu_toggle").css( 'position' ) === 'fixed') { - $("#layout_menu_toggle").attr('data-scroll-down', ''); $("#layout_menu_toggle").fadeIn(); + $("#layout_menu_toggle").css('display', ''); } } previousScroll = currentScroll; - }); + } /* keyboard accessibility for dropdown menu */ $(".layout_dropdown").each(function()