Skip to content

fix: ui bounce in short time#199

Open
CodeMak1r-zy wants to merge 1 commit intojasongaare:masterfrom
CodeMak1r-zy:fix/content_layout
Open

fix: ui bounce in short time#199
CodeMak1r-zy wants to merge 1 commit intojasongaare:masterfrom
CodeMak1r-zy:fix/content_layout

Conversation

@CodeMak1r-zy
Copy link

No description provided.

@CodeMak1r-zy
Copy link
Author

CodeMak1r-zy commented Dec 13, 2024

const { width, height } = e.nativeEvent.layout;

Some times, I get too many different value in e.nativeEvent.layout.width, such as 259.7402648925781 or 260.0865783691406, but I didn't do anything at the time.

The component keeps repeatedly re-rendering in a very short amount of time.

I think it should be fixed with Math.round.

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.

1 participant