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

only resize on initial react mount?? #62

Open
arthurysong opened this issue Nov 5, 2020 · 1 comment
Open

only resize on initial react mount?? #62

arthurysong opened this issue Nov 5, 2020 · 1 comment

Comments

@arthurysong
Copy link

Hey guys,
Is there any way the react-textfit component only resizes on the initial mount??

The component is causing a weird side effect where when I scroll really quickly on my phone the component resizes and causes the page to snap to a position on the page.

I think it's because when I scroll really quick the browser's url bar/bottom options bar disappears and that causes react-textfit component to resize, which then causes the page to snap.

@ataverascrespo
Copy link

@arthurysong Did you ever find a solution to this?

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

No branches or pull requests

2 participants