epub.js icon indicating copy to clipboard operation
epub.js copied to clipboard

touchstart event can not be responsed

Open ChaseChan opened this issue 6 years ago • 4 comments

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....

ChaseChan avatar Mar 10 '19 10:03 ChaseChan

Are you using Chromes device mode to emulate the touches?

fchasen avatar Mar 11 '19 18:03 fchasen

There are many problems with the new version.Delete “ method: 'default'”

omnilancer avatar Mar 30 '19 07:03 omnilancer

There are many problems with the new version.Delete “ method: 'default'”

这个答案可行

dmdoit avatar Mar 03 '20 16:03 dmdoit

There are many problems with the new version.Delete “ method: 'default'”

nice!

somepeopleHavingDream avatar Jul 21 '24 04:07 somepeopleHavingDream