I have a web page with some elements and Ant.design slider
present too. Slider values is controlled by React state. When slider tooltip is turn on, slider is very slow down and in console I see a message [Violation] Forced reflow while executing Javascript took ...
.
When slider tooltip is turn off, slider speed becomes normal. Message is appear in console also if I'am only point a mouse on slider handle (without moving handle).
How can I fix bad behaviour with tooltip? Thank's in advance!
Slider with tooltip is a standard feature that normally works well, so chances are you have some performance issue in your code.
See the accepted answer to Violation Long running JavaScript task took xx ms for some useful tips on how to locate problems.
For more detailed help you need to post your code, preferably as an executable example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With