touchstate: send touchend message if widget is remove/recreated while interacted with
This commit is contained in:
parent
bc3891b6ae
commit
f8aa45f318
2 changed files with 13 additions and 1 deletions
|
|
@ -37,4 +37,15 @@ module.exports = (self, options)=>{
|
|||
}
|
||||
}, options)
|
||||
|
||||
self.onRemove = ()=>{
|
||||
if (sendTouchState && self.touched > 0) {
|
||||
self.sendValue({
|
||||
address:self.getProp('touchAddress'),
|
||||
v:0,
|
||||
split:false
|
||||
})
|
||||
}
|
||||
self.__proto__.onRemove.call(self)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue