epub.js
epub.js copied to clipboard
touchstart event can not be responsed
version: 0.3.83
this.book = new Epub(URL)
this.rendition = this.book.renderTo('read', {
width: window.innerWidth,
height: window.innerHeight,
method: 'default'
})
this.rendition.display()
this.rendition.on('touchstart', event => {
console.log('e', event)
this.startX = event.changedTouches[0].clientX
this.startTime = event.timeStamp
})
chrome console panel did not print anything, why....
Are you using Chromes device mode to emulate the touches?
There are many problems with the new version.Delete “ method: 'default'”
There are many problems with the new version.Delete “ method: 'default'”
这个答案可行
There are many problems with the new version.Delete “ method: 'default'”
nice!