Skip to content

Slider does not generate event when clicking new position with continuous_update=False #3613

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

Closed
posita opened this issue Oct 20, 2022 · 1 comment

Comments

@posita
Copy link

posita commented Oct 20, 2022

Run this:

from ipywidgets import widgets

slider = widgets.IntSlider(
    min=1,
    max=100,
    step=1,
    continuous_update=False,
    description="Test",
)

widgets.VBox([
    slider,
    widgets.interactive_output(lambda **kw: display(f"kw: {kw}"), {"slider": slider})
])

Click here:

Screenshot from 2022-10-20 17-15-29

The slider will move to under the click position, but no event will be generated:

Screenshot from 2022-10-20 17-15-33

Click the scrubber (now under your cursor):

Screenshot from 2022-10-20 17-15-38

That will generate the event.

I'm pretty sure an event should be generated after the slider moves without the second click.

@posita
Copy link
Author

posita commented Oct 20, 2022

Oops! Duplicate of #3597.

@posita posita closed this as completed Oct 20, 2022
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

No branches or pull requests

1 participant