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

WheelPicker - fix item snap to vertical center #2989

Merged
merged 1 commit into from Mar 20, 2024

Conversation

Inbal-Tish
Copy link
Collaborator

Description

WheelPicker - fix item snap to vertical center

Changelog

WheelPicker - fix item snap to vertical center

Additional info

ticket 4032, 3661

@adids1221 adids1221 merged commit 43151d5 into master Mar 20, 2024
1 check passed
@adids1221 adids1221 deleted the fix/WheelPicker_snap branch March 20, 2024 15:10
@@ -335,6 +335,8 @@ const WheelPicker = ({
);
}, []);

const offsets = items.map((_, i) => i * itemHeight);
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Inbal-Tish
Shouldn't we memoize this?
This will generate a new list each render and might affect performance

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, sure

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

3 participants