모바일 상품상세 하단 플로팅 메뉴 제거
This commit is contained in:
@ -105,7 +105,19 @@
|
||||
.clearQueue()
|
||||
.stop()
|
||||
.css({ top: element_y+"px", display: "block" })
|
||||
.animate({ top: "-="+height }, cfg.duration, function() { $this.data("animated", false); });
|
||||
.animate({ top: "-="+height }, cfg.duration,
|
||||
function() {
|
||||
$this.data("animated", false);
|
||||
|
||||
scroll_y = $(window).scrollTop();
|
||||
w_height = $(window).height();
|
||||
var temp_y = scroll_y + w_height - height;
|
||||
|
||||
if( temp_y != element_y) {
|
||||
$this.css("top", temp_y+"px");
|
||||
}
|
||||
}
|
||||
);
|
||||
},
|
||||
show: function()
|
||||
{
|
||||
|
||||
@ -117,6 +117,8 @@
|
||||
if(check_animated())
|
||||
return;
|
||||
|
||||
$(window).on("touchmove", blockMove);
|
||||
|
||||
idx = $slides.index($slides.filter("."+cfg.active_class));
|
||||
next = (idx + 1) % count;
|
||||
|
||||
@ -149,6 +151,8 @@
|
||||
$tabs.eq((next + 1) % count).addClass("tab_listed").css("left", pos_right+"px");
|
||||
}
|
||||
|
||||
$(window).off("touchmove", blockMove);
|
||||
|
||||
$wrap.height(next_height);
|
||||
$tabs.eq(next).addClass(cfg.tab_active);
|
||||
}
|
||||
@ -166,6 +170,8 @@
|
||||
if(check_animated())
|
||||
return;
|
||||
|
||||
$(window).on("touchmove", blockMove);
|
||||
|
||||
idx = $slides.index($slides.filter("."+cfg.active_class));
|
||||
next = idx - 1;
|
||||
if(next < 0)
|
||||
@ -200,6 +206,8 @@
|
||||
$tabs.eq((next + 1) % count).addClass("tab_listed").css("left", pos_right+"px");
|
||||
}
|
||||
|
||||
$(window).off("touchmove", blockMove);
|
||||
|
||||
$wrap.height(next_height);
|
||||
$tabs.eq(next).addClass(cfg.tab_active);
|
||||
}
|
||||
@ -236,6 +244,11 @@
|
||||
swipe_left();
|
||||
}
|
||||
|
||||
function blockMove(event)
|
||||
{
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
$(window).on("load", function(e) {
|
||||
swipe_init();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user