상품상세 슬라이드 반응성 개선

This commit is contained in:
chicpro
2013-10-23 09:38:50 +09:00
parent d7d1dddd93
commit c63f4f6ecd
3 changed files with 52 additions and 50 deletions

View File

@ -257,7 +257,7 @@
break;
}
},
threshold: 100,
threshold: 70,
excludedElements:"button, input, select, textarea, .noSwipe",
allowPageScroll:"vertical"
});

View File

@ -97,7 +97,7 @@ switch($info) {
<div id="menu_button" class="menu_hidden">
<button type="button">메뉴열기</button>
</div>
<div id="menu_list" class="menu_hidden">
<div id="menu_list">
<?php echo pg_anchor($info); ?>
</div>

View File

@ -377,7 +377,7 @@ $(function(){
return false;
},
threshold: 100,
threshold: 70,
excludedElements:"button, input, select, textarea, .noSwipe",
allowPageScroll:"vertical"
};
@ -387,6 +387,10 @@ $(function(){
function content_slide(direction)
{
// 로딩 레이어
load_message();
setTimeout(function() {
var content = $("#container").clone()
.find("#form_btn_layer").remove()
.end().find(".sit_pvi_btn").remove()
@ -408,9 +412,6 @@ function content_slide(direction)
left_value = "+="+width+"px";
}
// 로딩 레이어
load_message();
$("#container")
.css({
width: width+"px",
@ -438,6 +439,7 @@ function content_slide(direction)
document.location.href = href[0];
}
);
}, 100);
}
function load_message()