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

[Feature request] Support visibleFraction in ObserverModel #80

Closed
cogivn opened this issue May 11, 2024 · 3 comments
Closed

[Feature request] Support visibleFraction in ObserverModel #80

cogivn opened this issue May 11, 2024 · 3 comments
Assignees

Comments

@cogivn
Copy link

cogivn commented May 11, 2024

Platforms

Android, iOS

Description

Hi,

Thank you for creating a wonderful library.
It is very helpful for me and can we add field as visibleFraction in ObserverModel?
A fraction in the range [0,...,1] that represents what proportion of the widget is visible (assuming rectangular bounding boxes).

Why

When the displayingChildModelList field represents [0, 1, 2] and the visibleFraction is aligned on each record [0.5, 0.2, 0.3]. so we can choose the best index which in this case is 0 instead of taking the first or last index in displayChildModelList.

@LinXunFeng
Copy link
Member

Good idea, visibleFraction has been added to the development branch, you can try it to see if it satisfies your requirement.

@cogivn
Copy link
Author

cogivn commented May 13, 2024

Hi @LinXunFeng,

The visibleFraction field seems to be working well too.
I'll close this ticket now. Thanks so much!

@cogivn cogivn closed this as completed May 13, 2024
@LinXunFeng
Copy link
Member

Version 1.20.0 has been released and includes this property.

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