-
-
Notifications
You must be signed in to change notification settings - Fork 143
Ability to have different Outputs react on either a 'drag' or 'mouseup' for a single Slider #107
Comments
@mikesmith1611 - that's a really good idea. The only way that this would be possible right now (with the current framework) would be to introduce a new property like
That wouldn't be hard to implement, although I'm worried about it introducing some complexity in the documentation and pedagogy... For now, you're welcome to create a fork of these components and implement this. Here is the logic where we update the |
I'm really interested in this kind of functionality and how to implement. I have a whole bunch of calculations that depend off the values of the slider but at the same time I want to continually update the values displayed so the user knows where they are sliding. How could I extend this sample application to store the final values after mouseup somewhere whilst continually updating on drag Sample app with drag slider updating values
` |
@mikesmith1611 how did your testing go? I can see you made a couple of source code changes |
The volume-slicer I'm working on would also greatly benefit from this feature :) I'd be happy to prepare a PR, if there is a good chance for it to be accepted.
Arguably, the API would become simpler, because the |
Would it be feasible to have two different Inputs from a slider:
'drag-value' and a 'mouseup-value'
This would then allow the user to, for example, update a label that reflects the value of the slider with a drag and then update a longer callback on mouseup.
The text was updated successfully, but these errors were encountered: