Make events that can be passive passive

pull/2/head
cpsdqs 7 years ago
parent 0b6e4439bc
commit 16436a9a98
Signed by untrusted user: cpsdqs
GPG Key ID: 3F59586BB7448DD1
  1. 2
      js/term/screen.js

@ -164,7 +164,7 @@ module.exports = class TermScreen extends EventEmitter {
touchPosition = getTouchPositionOffset(e.touches[0]) touchPosition = getTouchPositionOffset(e.touches[0])
touchDidMove = false touchDidMove = false
touchDownTime = Date.now() touchDownTime = Date.now()
}) }, { passive: true })
this.canvas.addEventListener('touchmove', e => { this.canvas.addEventListener('touchmove', e => {
touchPosition = getTouchPositionOffset(e.touches[0]) touchPosition = getTouchPositionOffset(e.touches[0])

Loading…
Cancel
Save