events: just in case, fake polyfill Touch event object
This commit is contained in:
parent
bdf86a3542
commit
cfa917c930
2 changed files with 6 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
const {fix, normalizeEvent, resetEventOffset} = require('./utils')
|
||||
const {fix, normalizeEvent, resetEventOffset, Touch} = require('./utils')
|
||||
|
||||
var targets = {},
|
||||
previousPointers = {}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
const Touch = window.Touch || class Touch {}
|
||||
|
||||
module.exports = {
|
||||
|
||||
fix: function(e) {
|
||||
|
|
@ -87,7 +89,9 @@ module.exports = {
|
|||
left: offsetLeft,
|
||||
top: offsetTop
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Touch: Touch
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue