-
-
Notifications
You must be signed in to change notification settings - Fork 362
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
Map animations are sometimes skipped #3275
Comments
I'll likely look into this eventually, but it's way far down my priority list; it won't be for a few months at least. |
I am pretty sure that it is Tangram issue and maybe intentional. |
Ok. Yeah the ... multiple-animations-at-the-same-time is not perfect. tangram-es does not support it at all, the CameraManager is some kind of compatibility layer to enable exactly that. Apparently there are small issues with that, but I will not fix them because #3123 |
It feels like you have both responded to "bug" 1, which I proposed not to fix, and skipped over responding to bug 2, which is about a single animation being skipped, i.e. the map getting "stuck" in a state of skipping animations. |
Perhaps this is a better demonstration of the problem. The first tilt and select quest are there to show the correct behavior. Then I trigger the bug and show the incorrect behavior. sc-recording-trimmed-reencoded.mp4Annoyingly, it's hard to get a good quality recording that's also small enough to upload directly here. |
I am also pretty sure that "bug" 1, reproduced at 00:07 in the recording above, is intentional. While playing around to get the recording, I found that the fix is to do another "fling" of the map and let it come to a complete stop. So basically, the probably-intentional lock-out is not being lifted when the fling is "interrupted" by another animation. |
I should not have gotten sucked into looking at this, but I did. I'll stop here, but my current best guess is that it might be related to one of these callbacks, where we respond differently depending on whether there is currently an animation playing. StreetComplete/app/src/main/java/de/westnordost/streetcomplete/map/tangram/KtMapController.kt Lines 103 to 112 in 4d5fa6d
StreetComplete/app/src/main/java/de/westnordost/streetcomplete/map/tangram/KtMapController.kt Lines 121 to 131 in 4d5fa6d
Docs describing the callbacks here: https://tangrams.readthedocs.io/en/master/API-Reference/android-sdk/0.11.0/com/mapzen/tangram/MapChangeListener.html |
There are two parts to this bug.
1. When two animations overlap, the second is skipped
How to Reproduce
It can be reproduced with any two animations, but this is the easiest/most obvious repro.
Expected: Any of these:
Actual: The map finishes moving due to momentum, then instantly snaps back to my location, skipping the animation.
Versions affected: Android 7.0 and StreetComplete v34.0, but it's been around for a while (maybe forever)
I propose not to fix this (unless it turns out to be easy)
2. Sometimes animations are totally locked out
How to Reproduce
I am not sure that this is 100% reliable, but it was this particular time when I tested:
Expected: Animation plays as normal, since there is no overlapping animation.
Actual: Camera instantly snaps to end state, as if it were still animating like above.
Sometimes panning around to arbitrary locations will fix this after some time.
I'm not sure if it's related, but also sometimes zooming to a quest simply doesn't happen, and the quest geometry ends up covered by the quest form.
One or both of these may be an upstream issue, I'm not sure.
The text was updated successfully, but these errors were encountered: