traversing: store samewidget switch in utils

This commit is contained in:
jean-emmanuel 2018-10-23 09:40:37 +02:00
parent 901e0e95e6
commit fb967a3840
2 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,5 @@
const {normalizeDragEvent, resetEventOffset} = require('./utils')
const {normalizeDragEvent, resetEventOffset, TRAVERSING_SAMEWIDGET} = require('./utils')
const iOS = require('../ui/ios')
const TRAVERSING_SAMEWIDGET = 1
var targets = {},
previousPointers = {}

View file

@ -85,6 +85,8 @@ module.exports = {
event.offsetX = event.pageX - off.left
event.offsetY = event.pageY - off.top
}
},
TRAVERSING_SAMEWIDGET: 1
}