Closed Fubinator closed 4 years ago
@Fubinator
Thanks for reporting this.
Do you encounter this error only in the Google Lighthouse or maybe also in some other places?
Can you see this error for the docs https://brainhubeu.github.io/react-carousel/docs/examples/simpleUsage ?
@piotr-s-brainhub yes, i'm encountering the error for the docs:
In other places I have not yet seen the error. This is only about the given best practices of Google Lighthouse.
I've digged a little bit into the code and I think the error occurs in the following lines:
I am not exactly sure why there is one listener set to passive: false
, but it may help if the other ones are set to passive: true
Thanks @Fubinator , I also see this error.
+1
I am seeing this warning in the chrome developer console when react-carousel loads.
@kelyvin so I invite you to like (👍) this issue we could compare issues by the number of 👍
You got it!
thanks @kelyvin
The issue has been fixed in v1.19.23. If the problem will occur for you please let me know and I will reopen this thread
Describe the bug If you install the slider and run Google's Lighthouse, the error "Does not use passive listeners to improve scrolling performance" appears under "Best Practices" (see screenshot). This is probably caused by multiple event listeners.
Expected behavior The message should not appear in a lighthouse report.
Screenshots![image](https://user-images.githubusercontent.com/16110028/86356471-988ba580-bc6c-11ea-9dde-6dbb9cf6b86c.png)
Environment
System: OS: Linux 5.7 Arch Linux CPU: (16) x64 AMD Ryzen 7 2700X Eight-Core Processor Memory: 1.77 GB / 15.63 GB Container: Yes Shell: 5.0.17 - /bin/bash Binaries: Node: 14.4.0 - /usr/bin/node Yarn: 1.22.4 - /usr/bin/yarn npm: 6.14.5 - /usr/bin/npm Browsers: Firefox: 77.0.1 npmPackages: @brainhubeu/react-carousel: ^1.16.3 => 1.16.3