8000 hotfix/scroll-with-animation by SoloJiang · Pull Request #996 · alibaba/rax · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hotfix/scroll-with-animation #996

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

Merged
merged 10 commits into from
Mar 26, 2019

Conversation

SoloJiang
Copy link
Collaborator

Before submitting a pull request, please make sure the following is done...

  1. Fork the repo and create your branch from master.
  2. If you've added code that should be tested, add tests!
  3. If you've changed APIs, update the documentation.
  4. Ensure the test suite passes (npm test).
  5. Make sure your code lints (npm run lint) - we've done our best to make sure these rules match our internal linting guidelines.

@wssgcg1213 wssgcg1213 self-requested a review March 26, 2019 06:41
Copy link
Collaborator
@wssgcg1213 wssgcg1213 left a comment

Choose a reason for hiding this comment

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

再看看

this._dispatchAction(SCROLL_LEFT, newVal);
break;
case SCROLL_INTO_VIEW:
this._dispatchAction(SCROLL_INTO_VIEW, newVal);
Copy link
Collaborator

Choose a reason for hiding this comment

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

switch (key) {
  case SCROLL_TOP:
  case SCROLL_LEFT:
  case SCROLL_INTO_VIEW:
    this._dispatchAction(key, newVal);
    break;
}

*/
_dispatchAction(action, value) {
this._actionMap[action] = value;
requestAnimationFrame(() => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里逻辑需要改下

Copy link
Collaborator
@wssgcg1213 wssgcg1213 left a comment

Choose a reason for hiding this comment

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

Reviewed.

@wssgcg1213 wssgcg1213 merged commit e4b772e into alibaba:master Mar 26, 2019
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
0