jaames / iro.js

🎨 Modular color picker widget for JavaScript, with support for a bunch of color formats
https://iro.js.org
Mozilla Public License 2.0
1.32k stars 82 forks source link

Passive Event Listener #247

Closed Kamephis2000 closed 1 year ago

Kamephis2000 commented 1 year ago

Hello, I recently encountered a warning in the Chrome Debugger while using this script. The warning is shown in the following screenshot:

image

Here is the mentiond link from the screenshot: https://www.chromestatus.com/feature/5745543795965952

I am using the development version of the script in a self-hosted manner. The warning occurs on line 14 of the code, which is quite lengthy and difficult for me to interpret.

Is there a way for me to resolve this warning or will there be an update for the package in the future?

Thank you and best regards, Frank

jaames commented 1 year ago

It's just a best-practice warning. Last time I checked, using this type of event listener was correct for this particular use-case, so it can be ignored.