switch: widget not reacting at first touch when traversing is enabled on parent

This commit is contained in:
bordun 2021-03-01 17:34:22 +01:00
parent 1d6794e6af
commit c32c268f16
2 changed files with 7 additions and 0 deletions

View file

@ -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)