|
|
@ -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]) |
|
|
|