nathancahill / split

Unopinionated utilities for resizeable split views
https://split.js.org/
MIT License
6.1k stars 448 forks source link

Intervention : IgnoredEventCancel #792

Open dearlsh94 opened 12 months ago

dearlsh94 commented 12 months ago

I found some intervention error.

intervention: Ignored attempt to cancel a touchstart event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.

It happened in split.es.js at line 523:11

I read this post -> https://www.uriports.com/blog/easy-fix-for-intervention-ignored-attempt-to-cancel-a-touchmove-event-with-cancelable-false/

So, I suggest it fix like if (event.cancelable) event.preventDefault();