szboynono / mosha-vue-toastify

A light weight and fun Vue 3 toast or notification or snack bar or however you wanna call it library.

Home Page:https://szboynono.github.io/mosha-vue-toastify/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scroll-blocking touchstart event

ParogDev opened this issue · comments

commented

Any time I use a toast, I get this warning in the console;

[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

Would it be possible to put the event as passive so this can be used in production? :)

commented

The issue only seems to be on chrome; Firefox does not display any warning.

Good catch and thanks for the feedback! I made a little fix, can you try v1.0.21 ?

commented

v1.0.21 fixes it. Your reply was so fast that I came back to my work machine to give you an answer in a reasonable time myself.

Amazing work by the way. Thank you for the typescript types!