From 2da989c9fe5610ab57da78c375fe63a5e1866b7d Mon Sep 17 00:00:00 2001 From: MinSoo Kim Date: Wed, 19 Oct 2016 23:48:54 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC=EC=97=90=EC=84=9C?= =?UTF-8?q?=EB=A7=8C=20=EB=8F=99=EC=9E=91=ED=95=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=A1=B0=EA=B1=B4=EB=AC=B8=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/simple_world/layout.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/simple_world/layout.js b/layouts/simple_world/layout.js index 8935d57f7..991671b26 100644 --- a/layouts/simple_world/layout.js +++ b/layouts/simple_world/layout.js @@ -38,7 +38,7 @@ $(function() var currentScroll = $(this).scrollTop(); if (currentScroll > previousScroll) { - if($("#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").attr('data-scroll-down', 'true'); $("#layout_menu_toggle").fadeOut(); @@ -46,7 +46,7 @@ $(function() } else { - if($("#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").attr('data-scroll-down', ''); $("#layout_menu_toggle").fadeIn();