-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add point to point panning API #154
Comments
Perhaps API should provide two variants; one in point units and one in percentage units. |
EarlGrey provides a I mean it is not optimal, but could be well enough |
Did a bit more research, this EarlGrey utility looks exactly like the thing we need: GREYPathGestureUtils, it is used e.g. in the Swipe Action, which is used by My idea would be to internally extend EarlGrey to support "swipe from here to there in x seconds". Does this sound like a good idea to you? Would be willing to try a PR ;) |
Sounds good. If you can expose that method to the JS world, it would be lovely. |
I will have a look at this next weekend ;) Would really help me to test my drawer library. |
This PR by @DanielMSchmidt will solve it. |
Is this supported now? |
Sorry, not yet. |
OK, thanks. Is there a workaround for testing a Picker? |
Pickers are looked at right now for a proper fix, but I don't have a timeline currently. We also found another issue which may need this point-to-point API, so this may come soon too. Again, cannot say when. |
OK, thanks for the update. Can you recommend a way to simulate the behavior of the picker directly? Just so one can move forward within the app. |
You can try mocking the screen or functionality for the tests. Not optimal but I can't think of something else right now. Maybe @rotemmiz may have an idea? |
This is being discussed seriously in #589. Closing this issue in favor of that one. |
For various controls, we need an API that will allow the users to specify two points, and let the system perform a pan/scroll from one point to the other. For instance, a picker needs this to perform selection.
The text was updated successfully, but these errors were encountered: