mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Merge pull request #1215 from zilongshanren/fix-pageview-event-turning
fix pageview event turning
This commit is contained in:
@@ -367,12 +367,10 @@ var PageView = cc.Class({
|
||||
}
|
||||
},
|
||||
|
||||
_dispatchPageTurningEvent: function (sender, event) {
|
||||
if (event === cc.ScrollView.EventType.AUTOSCROLL_ENDED) {
|
||||
if (this._lastPageIdx === this._curPageIdx) return;
|
||||
this._lastPageIdx = this._curPageIdx;
|
||||
cc.Component.EventHandler.emitEvents(this.pageEvents, this, EventType.PAGE_TURNING);
|
||||
}
|
||||
_dispatchPageTurningEvent: function () {
|
||||
if (this._lastPageIdx === this._curPageIdx) return;
|
||||
this._lastPageIdx = this._curPageIdx;
|
||||
cc.Component.EventHandler.emitEvents(this.pageEvents, this, EventType.PAGE_TURNING);
|
||||
},
|
||||
|
||||
// 是否超过自动滚动临界值
|
||||
|
||||
Reference in New Issue
Block a user