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

Clicking slider track advances the slider knob. #1089

Merged
merged 4 commits into from
Jul 9, 2015
Merged

Clicking slider track advances the slider knob. #1089

merged 4 commits into from
Jul 9, 2015

Conversation

jkruder
Copy link
Contributor

@jkruder jkruder commented Jul 9, 2015

Addresses #1074. Clicking anywhere on the track advances the slider to that position. Updated onMouseDown event handler to track the X position and compare it against the X position in the onMouseUp event handler to prevent multiple events from firing after a drag.

@hai-cea
Copy link
Member

hai-cea commented Jul 9, 2015

@jkruder For some reason, this fix isn't working for me. I see hover affects, but clicking does not advance the knob.

@jkruder
Copy link
Contributor Author

jkruder commented Jul 9, 2015

@hai-cea I missed a line while refactoring.

hai-cea added a commit that referenced this pull request Jul 9, 2015
Clicking slider track advances the slider knob.
@hai-cea hai-cea merged commit 7023f6a into mui:master Jul 9, 2015
@hai-cea
Copy link
Member

hai-cea commented Jul 9, 2015

Thanks @jkruder

mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Nov 10, 2020
* WrappedKeyboardPicker: send strictCompareDates prop

* compareDateStrict: add tests
@zannager zannager added the component: slider This is the name of the generic UI component, not the React module! label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: slider This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants