chessboardjs
chessboardjs copied to clipboard
[chrome console error In touch ] unable to preventdefault inside passive event listener
In touch, at each play there is a set of error in the console
jquery.min.js:3 [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080
Is this error specific to chessboard.js or "upstream" with jQuery?
@oakmac , the error is specific to chessboard.js.
I think, in chessboard.js
there is evt.preventDefault()
to prevent screen from scrolling etc. which is causing the error as chrome have some event listeners passive by default and passive event listeners cannot call evt.preventDefault()
.