diff --git a/js/modules/views/forum/Row.js b/js/modules/views/forum/Row.js index 6219c91..c9e1b4e 100644 --- a/js/modules/views/forum/Row.js +++ b/js/modules/views/forum/Row.js @@ -8,7 +8,8 @@ define(function (require, exports, module) { var RowForumView = BasicView.extend({ tagName: 'li', events: { - 'singleTap': function (e) { + 'iscrollTap': function (e) { + console.log(e); Backbone.stage.change('#!/topic/' + this.model.get('id'), ['slide-right', 'slide-left']); appCache.get('topicView').$el.find('header .subject').text(sliceSubject(this.$el.find('h4').text())); } diff --git a/js/modules/views/forums/Forums.js b/js/modules/views/forums/Forums.js index 1602f6b..8df7e72 100644 --- a/js/modules/views/forums/Forums.js +++ b/js/modules/views/forums/Forums.js @@ -22,7 +22,7 @@ define(function (require, exports, module) { }, events: { // 跳转用singleTap触发 防止手误 - 'singleTap li.forum': function (e) { + 'iscrollTap li.forum': function (e) { var $li = $(e.currentTarget); if (!this.flag.chooseFavor) { this.introForum($li); diff --git a/js/utils/iScrollPull.js b/js/utils/iScrollPull.js index 42a0bff..74a3db2 100644 --- a/js/utils/iScrollPull.js +++ b/js/utils/iScrollPull.js @@ -59,6 +59,7 @@ define(function (require, exports, module) { this.scroll = createPullabledScroll(IScroll, '#' + id, { scrollbars: true, fadeScrollbars: true, + tap: 'iscrollSourceTap', probeType: 2, pullDownOffset: pullDownOffset, pullUpOffset: pullUpOffset @@ -83,6 +84,9 @@ define(function (require, exports, module) { $pullUpEl.removeClass('flip').addClass('loading'); pullUpAction(); // Execute custom function (ajax call?) }); + this.$el.on('iscrollSourceTap', function (e) { + self.$el.find(e.target).trigger('iscrollTap'); + }); }; return iScrollPull; });