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

Remove mouse{down,up} and touch{start,end,tap} #275

Merged
merged 1 commit into from
Feb 1, 2017

Conversation

moonboots
Copy link
Collaborator

to: @majapw

Replaces mouse and touch handlers in favor of onClick/onDayClick. I think these mouse/touch handlers support functionality that's no longer used. This change should improve scroll performance on mobile because the browser doesn't need to interrupt scrolling to handle touchstart/end.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.5%) to 84.626% when pulling 91c40fd on moonboots:remove-touch-handlers into 0bd7072 on airbnb:master.

@ljharb ljharb added the semver-major: breaking change A non-backwards-compatible change; anything that breaks code - including adding a peerDep. label Jan 31, 2017
Simplify by using click handler exclusively. This speeds up the
scrollable daypicker by avoid touch callbacks.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.5%) to 84.605% when pulling 7305efb on moonboots:remove-touch-handlers into 0bd7072 on airbnb:master.

@majapw
Copy link
Collaborator

majapw commented Feb 1, 2017

Oh! I didn't realize you wanted to remove this completely. I suppose have fewer handlers floating around might help with performance as well. This seems reasonable to me (but is def breaking).

@majapw majapw merged commit 7ce9681 into react-dates:master Feb 1, 2017
@moonboots moonboots deleted the remove-touch-handlers branch February 3, 2017 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-major: breaking change A non-backwards-compatible change; anything that breaks code - including adding a peerDep.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants