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

fix(ui5-range-slider): fire input event with correct values after swapping #6385

Merged
merged 9 commits into from
Feb 8, 2023

Conversation

ndeshev
Copy link
Contributor

@ndeshev ndeshev commented Jan 30, 2023

Resolves #6377
Resolves #6413

Fixes the visual bugs with the progress bar during value swap when dragging the handles.
Fixes change event firing on keyboard interactions and the swapping bug on keyboard triggered swaps.
Fixed bug where change event is fired after mouse interaction even if the initial values are not changed.

Note: The swapping of the values is no longer executed on finalized interaction (mouseup, keyup), but immediately after the start value is bigger than the end one.

…dle swapping

resolves #6377

Also fixes the visual bugs with the progress bar during value swap when dragging the handles.
@ndeshev ndeshev requested review from vladitasev and niyap January 30, 2023 16:27
@ndeshev ndeshev changed the title fix(ui5-range-slider): fire input event with correct values after han… fix(ui5-range-slider): fire input event with correct values after swapping Jan 30, 2023
Copy link
Contributor

@niyap niyap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change fixes the issue but introduces a new one as well.
Check the sample "Event Testing Slider". Drag the first handle slowly, swapping it with the other one, notice how the "input" event is fired but the handle is not visualised. It is visualised again two steps after the swap which is not expected.

@ndeshev ndeshev marked this pull request as draft February 3, 2023 14:48
@ndeshev ndeshev marked this pull request as ready for review February 3, 2023 15:15
@ndeshev ndeshev merged commit 18df557 into main Feb 8, 2023
@ndeshev ndeshev deleted the rs-swap-input branch February 8, 2023 09:12
kskondov pushed a commit that referenced this pull request Feb 10, 2023
…pping (#6385)

* fix(ui5-range-slider): fire input event with correct values after handle swapping

resolves #6377

Also fixes the visual bugs with the progress bar during value swap when dragging the handles.

* fix(ui5-range-slider): fire input event with correct values after swapping

fix the bug from the testing

* fix(ui5-range-slider): fire input event with correct values after swapping

* fix(ui5-range-slider): fire input event with correct values after swapping

Fix change event firing on keyboard interactions and the swapping bug on keyboard triggered swaps

* fix(ui5-range-slider): fire input event with correct values after swapping

Clean the comment

* fix(ui5-range-slider): fire input event with correct values after swapping

lint

* fix(ui5-range-slider): don't fire change event if values are not changed

* fix(ui5-range-slider): fire input event with correct values after swapping

fix typos
ilhan007 pushed a commit that referenced this pull request Feb 15, 2023
…pping (#6385)

* fix(ui5-range-slider): fire input event with correct values after handle swapping

resolves #6377

Also fixes the visual bugs with the progress bar during value swap when dragging the handles.

* fix(ui5-range-slider): fire input event with correct values after swapping

fix the bug from the testing

* fix(ui5-range-slider): fire input event with correct values after swapping

* fix(ui5-range-slider): fire input event with correct values after swapping

Fix change event firing on keyboard interactions and the swapping bug on keyboard triggered swaps

* fix(ui5-range-slider): fire input event with correct values after swapping

Clean the comment

* fix(ui5-range-slider): fire input event with correct values after swapping

lint

* fix(ui5-range-slider): don't fire change event if values are not changed

* fix(ui5-range-slider): fire input event with correct values after swapping

fix typos
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.

Misleading comment in SliderBase "ui5-range-slider" wrong values in "input" event
3 participants