-
Notifications
You must be signed in to change notification settings - Fork 623
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
hotfix/scroll-with-animation #996
Conversation
There was a problem hiding this 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); |
There was a problem hiding this comment.
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(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里逻辑需要改下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed.
Before submitting a pull request, please make sure the following is done...
master
.npm test
).npm run lint
) - we've done our best to make sure these rules match our internal linting guidelines.