touchstate: send touchend message if widget is remove/recreated while interacted with
This commit is contained in:
parent
ab75124905
commit
f6935548cf
2 changed files with 13 additions and 1 deletions
|
|
@ -4,7 +4,8 @@
|
|||
|
||||
- bug fixes
|
||||
- regression breaking modal's position in scrolled tab containers
|
||||
|
||||
- widget with a `touchAddress` set now send their touch-off message when removed or recreated while being interacted with
|
||||
|
||||
## 0.23.0
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -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