switch: widget not reacting at first touch when traversing is enabled on parent
This commit is contained in:
parent
1d6794e6af
commit
c32c268f16
2 changed files with 7 additions and 0 deletions
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
## next
|
||||
|
||||
- bug fixes
|
||||
- switch: widget not reacting at first touch when traversing is enabled on parent
|
||||
|
||||
- custom module
|
||||
- expose `process` global
|
||||
|
||||
|
|
|
|||
|
|
@ -56,6 +56,10 @@ class Switch extends MenuBase {
|
|||
var index = 0,
|
||||
node = e.target
|
||||
|
||||
if (e.target === this.widget && e.traversing === true && e.firstTarget) {
|
||||
node = e.firstTarget
|
||||
}
|
||||
|
||||
if (touchFix && e.isTouch) {
|
||||
// special traversing touch fix
|
||||
node = document.elementFromPoint(e.clientX, e.clientY)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue