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

Stop velocity tracking on touch cancel #19

Merged
merged 2 commits into from
Jun 28, 2016

Conversation

wcjordan
Copy link
Member

Stop velocity tracking on touch cancel

Description

Add a handler so onTouchCancel we clear the interval used for tracking velocity.

Motivation and Context

Prevents wasted CPU cycles when a drag is cancelled

How Has This Been Tested?

Tested in sandbox in chrome on Galaxy S5

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

@wcjordan
Copy link
Member Author

Also I tested with multiple fingers and note our current support only works for single finger events. If we want scrolling with multiple fingers, we should file an additional ticket.

@wcjordan wcjordan added this to the 0.6.6 milestone Jun 24, 2016
@KamranAsif
Copy link
Contributor

LGTM

@wcjordan wcjordan merged commit aebaa0d into schrodinger:master Jun 28, 2016
@wcjordan wcjordan deleted the touch_support_followup branch June 30, 2016 00:46
inlinestyle added a commit to SeamlessDocsDev/seamlessng__3rdparty__facebook__fixed-data-table that referenced this pull request Jul 21, 2016
Summary:
  Manually brings in these two PRs from github.com/schrodinger/fixed-data-table-2:
   - schrodinger/fixed-data-table-2#7
   - schrodinger/fixed-data-table-2#19
  Also
   - pins React to 15.1.0

Test Plan: Manual, tested in Chrome mobile emulator so far, will test on multiple devices to see if there's improvement

Reviewers: jose, Hsin, yongxu

Reviewed By: Hsin, yongxu

Differential Revision: http://code.seamlessdocs.com/D969
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.

2 participants