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

fix: should set viewLength to the content size, without paddings #649

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

meowtec
Copy link
Contributor

@meowtec meowtec commented Jun 23, 2021

Fix the slow speed problem when custom width.

reproduce

  1. edit docs/src/pages/demos/DemoWidth.js
  2. set root.padding to 0 120px
  3. Swipe the Custom Width demo

@meowtec meowtec changed the title fix: should get view length from the container node [WIP]fix: should get view length from the container node Jun 24, 2021
@meowtec meowtec changed the title [WIP]fix: should get view length from the container node fix: should set viewLength to the content size, without paddings Jun 24, 2021
@meowtec
Copy link
Contributor Author

meowtec commented Jun 24, 2021

This should also fix #422

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.

None yet

1 participant