From c857ab85f8505709c6fc4403b24215ca19a97998 Mon Sep 17 00:00:00 2001 From: zyronon Date: Fri, 10 Dec 2021 13:30:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96slide?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/test/slide.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/test/slide.js b/src/pages/test/slide.js index daa8ba2..0c0a87d 100644 --- a/src/pages/test/slide.js +++ b/src/pages/test/slide.js @@ -6,9 +6,9 @@ export default class Slide { let container = new Dom(id) this.wrapper = new Dom().create('
') this.list = new Dom().create('
') - this.list.on('touchstart', this.touchstart.bind(this)) - this.list.on('touchmove', this.touchmove.bind(this)) - this.list.on('touchend', this.touchend) + this.list.els[0].addEventListener('touchstart', this.touchstart.bind(this)) + this.list.els[0].addEventListener('touchmove', this.touchmove.bind(this)) + this.list.els[0].addEventListener('touchend', this.touchend.bind(this)) this.wrapper.append(this.list) container.append(this.wrapper) this.totalSize = 52