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

Autoscroll math field back to starting position #23

Open
GoTrust-BaoNH opened this issue Jul 19, 2021 · 4 comments
Open

Autoscroll math field back to starting position #23

GoTrust-BaoNH opened this issue Jul 19, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@GoTrust-BaoNH
Copy link

Bug description

I can't goBack() cursor back to starting position

To Reproduce

Steps to reproduce the behavior:

  1. I input full text of MathField

image

  1. I input some characters to hide some of characters at start position

image

  1. Then, I use PreviousButton that move cursor to start position

image

  1. But I can't move cursor to start position

image

@GoTrust-BaoNH GoTrust-BaoNH added the bug Something isn't working label Jul 19, 2021
@github-actions
Copy link
Contributor

Hi 👋🏽 Thank you for opening your first issue with simpleclub/math_keyboard ❤

You can expect triage from us soon 🙂
In the meantime, you can try to search for similar issues in our issue database.

@creativecreatorormaybenot
Copy link
Contributor

Hi @GoTrust-BaoNH, thanks for using the package and opening the issue!

This is right now a known limitation, where we do not yet calculate if the cursor reaches the start of the visible area.
The idea right now is that you scroll manually. Can you try to scroll the math field manually (swipe with finger or with trackpad)? And do you think that works for you?

@GoTrust-BaoNH
Copy link
Author

Hi @GoTrust-BaoNH, thanks for using the package and opening the issue!

This is right now a known limitation, where we do not yet calculate if the cursor reaches the start of the visible area.
The idea right now is that you scroll manually. Can you try to scroll the math field manually (swipe with finger or with trackpad)? And do you think that works for you?

It works with scroll the math field manually. But I want use PreviousButton. Can you suggest me a way to fix it?

@creativecreatorormaybenot
Copy link
Contributor

@GoTrust-BaoNH I think the only way to achieve it is by contributing here.

The way it would work is finding the render box that draws the cursor and ensuring that is visible in the scroll view using: RenderObject.showOnScreen

I think to handle it nicely, we need to adjust flutter_math, but it should be possible to do it without that.

@creativecreatorormaybenot creativecreatorormaybenot added enhancement New feature or request and removed bug Something isn't working labels Jul 19, 2021
@creativecreatorormaybenot creativecreatorormaybenot changed the title Can't goBack() cursor back to starting position Autoscroll math field back to starting position Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants