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

How to set initial offset for ScrollViewWithOffsetTracking #15

Open
codetiger opened this issue Mar 28, 2024 · 3 comments
Open

How to set initial offset for ScrollViewWithOffsetTracking #15

codetiger opened this issue Mar 28, 2024 · 3 comments
Labels
discussions Discussions not yet turned into an action

Comments

@codetiger
Copy link

I am using ScrollViewWithOffsetTracking and want to set the initial scroll offset to a different value than 0. How can I do this?

@danielsaidi
Copy link
Owner

Hi @codetiger

I haven't tried, but can you wrap it in a ScrollViewReader and use that proxy to scroll?

@codetiger
Copy link
Author

scroll to a particular id is possible, but I want to scroll to an offset. I am using this for a sliding ruler where user can select a floating point number

@danielsaidi
Copy link
Owner

There's no built-in support for that, but I'd be happy to merge anything you come up with :)

@danielsaidi danielsaidi added the discussions Discussions not yet turned into an action label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussions Discussions not yet turned into an action
Projects
None yet
Development

No branches or pull requests

2 participants