Unable to preventDefault inside passive event listener

前端 未结 6 838
终归单人心
终归单人心 2020-11-29 06:13

I\'m using Framework7 sortable list and it works well, just that it doesn\'t trigger an event when the list is changed.

So I\'m trying a few built-in events:

<
6条回答
  •  有刺的猬
    2020-11-29 06:39

    See this blog post. If you call preventDefault on every touchstart then you should also have a CSS rule to disable touch scrolling like

    .sortable-handler {
      touch-action: none;
    }
    

提交回复
热议问题