Skip to content
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

Enable the difference between the current value and a specified value to be highlighted #145

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

chatchavan
Copy link

slider.showDiff()

See details on the corresponding entry in README.md.

@johnwalley
Copy link
Owner

Thanks for the PR! I'm on holiday right now and will review next week 👍

@johnwalley
Copy link
Owner

Hi! As with the other PR I'm interested to get a feel for how common a use-case this is.

It reminds me of the originFromZero option in Microsoft's Fluent slider component. Your PR is in some sense a more general version of that (placing the origin at an arbitrary point rather than just 0).

I can see why showing the user the distance from zero might be useful but I'd like to understand better the use-case around seeing the difference from a different point.

Thanks again!

@chatchavan
Copy link
Author

We created this feature for a use case where the user can preview the difference between the two states of parameter settings (current vs. history). See a video preview of our paper at 4:39. Our situation is view-only. We haven't tested dragging on the slider while the preview is shown.

I could imagine it could be used in the situation that the focus of the adjustment is a deviation from a baseline value. (Instead of adjusting the value itself.) For example, in statistics software, when the focus is on adjusting "mean difference" between two datasets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants