touchend event in ios webkit not firing?

后端 未结 4 978
滥情空心
滥情空心 2021-02-04 16:08

I\'m trying to implement a menu for a ios webkit based app in which the user touches/clicks and holds a menu button (\'.menu_item\'), after 500ms the sub menu opens (div.slide_u

4条回答
  •  终归单人心
    2021-02-04 16:52

    Maybe it's a bit late to answer. This event will never fire, because touch events fire on the very element on which touchstart happened. So, to do what you want to, one solution is to use document.elementFromPoint method, to which you will send appropriate x and y coordinates.

提交回复
热议问题