chessboardjs icon indicating copy to clipboard operation
chessboardjs copied to clipboard

[chrome console error In touch ] unable to preventdefault inside passive event listener

Open prakashujjwal1010 opened this issue 4 years ago • 2 comments

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

prakashujjwal1010 avatar May 27 '20 14:05 prakashujjwal1010

Is this error specific to chessboard.js or "upstream" with jQuery?

oakmac avatar Jun 03 '20 22:06 oakmac

@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().

prakashujjwal1010 avatar Jun 05 '20 11:06 prakashujjwal1010