Kaynağa Gözat

모바일 터치 스크롤 처리

isna 2 yıl önce
ebeveyn
işleme
4aaf5893be
1 değiştirilmiş dosya ile 4 ekleme ve 3 silme
  1. 4 3
      src/main/webapp/mobile/js/config.js

+ 4 - 3
src/main/webapp/mobile/js/config.js

@@ -1,7 +1,7 @@
1 1
 //JS버전
2 2
 var today = new Date();
3 3
 const js_version = itp_fn_date_format(today);
4
-const mobile_list_size = 10;
4
+const mobile_list_size = 12;
5 5
 
6 6
 requirejs.config({
7 7
 	baseUrl: ITP_CONTEXTPATH,
@@ -840,13 +840,14 @@ let CommonObj = {
840 840
 	},
841 841
 	moreView: function(id, isScroll, fn) {
842 842
 		if(isScroll) {
843
-			$(id).off('scroll touchmove').on('scroll touchmove', function () {
843
+			$(id).off('scroll').off('touchmove');
844
+			$(id).on('scroll touchmove', function () {
844 845
 				if($(this).scrollTop() + $(this).innerHeight() + 1 >= $(this)[0].scrollHeight) {
845 846
 					fn();
846 847
 				}
847 848
 			});
848 849
 		} else {
849
-			$(id).off('scroll touchmove');
850
+			$(id).off('scroll').off('touchmove');
850 851
 		}
851 852
 	},
852 853
 	getParameter: function(name) {