mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
모바일에서만 동작하도록 조건문 수정.
This commit is contained in:
parent
898d8cfe6d
commit
2da989c9fe
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue