Skip to content

Slider: Drag selected handle instead of closest#1514

Closed
atomiomi wants to merge 4 commits intojquery:masterfrom
atomiomi:9553-drag-selected-handle
Closed

Slider: Drag selected handle instead of closest#1514
atomiomi wants to merge 4 commits intojquery:masterfrom
atomiomi:9553-drag-selected-handle

Conversation

@atomiomi
Copy link
Contributor

Drag last changed handle if lastChangedValue is set and target is not a handle

Fixes #9553

Drag last changed handle if lastChangedValue is set and target is not a handle

Fixes  #9553
ui/slider.js Outdated
Copy link
Member

Choose a reason for hiding this comment

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

This is a bad name for a property that hold an index instead of a value. Let's rename it.

Correct test and implementation of `_closestHandleIndex` method

Fixes #9553
@atomiomi
Copy link
Contributor Author

Current implementation of _closestHandleIndex finds closest handle when user clicks the track. After receving your answer I will change it according to the behaviour

when user clicks on track closest handle changes

Refs #9553
change implementation of `_canBeDrag` method

Fixes #9553
@dmethvin
Copy link
Member

dmethvin commented Aug 1, 2019

Closing as a stale branch.

@dmethvin dmethvin closed this Aug 1, 2019
kabalin added a commit to kabalin/pastvu that referenced this pull request Dec 8, 2022
- Fixes sliders "stick togeter" issue when user is moving the slider
  located opposite to the one moved last.
- Fixes shifting of sliders by clicking on scale outside sliders.

The fix is inspired by PR jquery/jquery-ui#1514
(which has not been merged to jquery-ui) and elaborated further to address
click outside sliders as well.

Fixes PastVu#532
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants