event: drag: add remove routine
This commit is contained in:
parent
319f64f41a
commit
022efe1167
1 changed files with 12 additions and 0 deletions
|
|
@ -222,6 +222,18 @@ module.exports = {
|
|||
return
|
||||
}
|
||||
|
||||
element._widget = this
|
||||
element.style.touchAction = ''
|
||||
element.classList.remove('drag-event')
|
||||
|
||||
if (multitouch) {
|
||||
element.removeEventListener('touchstart', touchMultiWrapper)
|
||||
element.removeEventListener('mousedown', mouseMultiWrapper)
|
||||
} else {
|
||||
element.removeEventListener('touchstart', touchDownHandler)
|
||||
element.removeEventListener('mousedown', mouseDownHandler)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue