You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Tapping the compass no longer reliably resets the bearing — upon tapping, the compass will sometimes stutter towards north a few degrees and halt. Other times the compass will haltingly reset to north and disappear.
#1829 changed the iOS compass to rely on mbgl for frame updates, whereas it used to use view-based animation. So this is definitely a bug in mbgl’s update notifications.
Got lucky with wifi onboard, so I managed to find the root cause: mbgl::Transform::{_moveBy,_setAngle} were returning Update::Nothing, causing the render call to not repaint. Changing those to Update::Repaint fixed all the aforementioned issues. Fixed in #2060.
Reopening issue for proper validation. I've tested on an iPad, iPhone 6 (via simulator), Android, GLFW and Qt-based ports in OSX, clicking on compass button now properly resets bearing to North, and all other animations are working as should. Please verify?
Activity
ljbade commentedon Aug 11, 2015
Happens on Android too, noticed in #1856 (comment)
1ec5 commentedon Aug 11, 2015
#1829 changed the iOS compass to rely on mbgl for frame updates, whereas it used to use view-based animation. So this is definitely a bug in mbgl’s update notifications.
1ec5 commentedon Aug 11, 2015
This is causing
-[MapViewTests testCompassTap]to fail reliably.1ec5 commentedon Aug 11, 2015
Regression from fa4636f for #1979.
incanus commentedon Aug 11, 2015
iOS tests should have caught this, yes? Why didn't they?
https://travis-ci.org/mapbox/mapbox-gl-native/builds/74223611
1ec5 commentedon Aug 12, 2015
The tests have been catching the issue about 80% of the time. I had thought it was #1887, but those failures were just burying this one.
1ec5 commentedon Aug 12, 2015
Probably related: when tracking user location, the user dot often shuffles out of view.
1ec5 commentedon Aug 12, 2015
All animation is broken, and I’m having a difficult time untangling fa4636f. @brunoabinader, can you look into this?
3 remaining items
brunoabinader commentedon Aug 13, 2015
Got lucky with wifi onboard, so I managed to find the root cause:
mbgl::Transform::{_moveBy,_setAngle}were returningUpdate::Nothing, causing the render call to not repaint. Changing those toUpdate::Repaintfixed all the aforementioned issues. Fixed in #2060.brunoabinader commentedon Aug 13, 2015
Reopening issue for proper validation. I've tested on an iPad, iPhone 6 (via simulator), Android, GLFW and Qt-based ports in OSX, clicking on compass button now properly resets bearing to North, and all other animations are working as should. Please verify?
ljbade commentedon Aug 13, 2015
Works on Android
1ec5 commentedon Aug 13, 2015
Works great on iOS 8.4 on an iPhone 6 and on the iOS 9 Simulator.
friedbunny commentedon Aug 13, 2015
Looks good on-device — iPhone 5, iOS 9. 👍
Fix Update flags in mbgl::Transform