-
-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: update for merge tooltip function #1244
Labels
Documentation
Issues that require documentation updates
Comments
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! #1256 |
@leongersen Hello! Just remind you about the PR! |
@leongersen Hi! Please take a look at the changed docs in this PR! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: