...
|
...
|
@@ -57,12 +57,12 @@ var singleDay = { |
|
|
self.previousScrollTop = curScrollTop;
|
|
|
};
|
|
|
|
|
|
$(window).on('scroll', function() {
|
|
|
//if ($(window).scrollTop() > self.swiperOTop) {
|
|
|
// self.$swiper.addClass('fixer');
|
|
|
//} else {
|
|
|
// self.$swiper.removeClass('fixer');
|
|
|
//}
|
|
|
$(window).on('scroll touchmove touchstart touchend', function() {
|
|
|
if ($(window).scrollTop() > self.swiperOTop) {
|
|
|
self.$swiper.addClass('fixer');
|
|
|
} else {
|
|
|
self.$swiper.removeClass('fixer');
|
|
|
}
|
|
|
|
|
|
window.requestAnimationFrame(_scrollHandler.bind(self));
|
|
|
});
|
...
|
...
|
|