Open Always-prog opened 1 year ago
Thanks for your feedback! If you want to generalize the example in the documentation, I'd be open for a PR :)
@leongersen Of course, here is it! https://github.com/leongersen/noUiSlider/pull/1256
@leongersen Hello! Just remind you about the PR!
@leongersen Hi! Please take a look at the changed docs in this PR!
Hello! Thank you for a good slider!
I needed to merge sliders if they overlapped and found a function in the documentation (https://refreshless.com/nouislider/examples/#section-merging-tooltips) that could help me achieve this. However, I had to set a hardcoded minimum proximity, which was not ideal since my tooltips have different sizes.
To address this issue, I updated the script for merging tooltips. Here's the code I used:
My approach uses tooltip position and widths to determine which tooltips need to be merged, which I believe is an improvement over a hardcoded percentage.
Thank you for taking the time to read my issue and for any feedback you may have.