Commit a52b163a authored by liujiangnan's avatar liujiangnan

fix: 频繁左右滑动导致的问题

parent 1d8d2842
......@@ -190,6 +190,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
onEventEnd(event) {
const worldPoint = event.getLocation();
const x = worldPoint.x;
if (!this._cantouch) {
return;
}
if (x > this.touchX + 100) {
if (this.currentIndex <= 0) {
// 已经是第一个了
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment