-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
Once |
Maybe if the pinch starts out and winds up in the same place? In any case, this looks like a pretty good fix to put in. Want to do the honors and convert this screenshot into a PR, @kkaefer? |
dbc8fde
to
24ea920
Compare
Any idea where the NaNs come from (other than |
Prevent panning to NaN territory
@jfirebaugh isnan check also needs to be done in to be done handlePanGesture: selector as well. |
I believe they're only coming from the gesture recognizer. I have never observed NaN issues in anything but the iOS app. |
handlePanGesture also calls [UIPanGestureRecognize velocity]. I see this consistently with the following steps on iOS:
|
Sorry for the confusion. Everything looks good. |
Rapid panning and rotation sometimes lets the map view end up in a state where both x and y coordinates are NaN. Typically, the only thing rendering will be the background color. Once you're in this state, you can set a breakpoint at
Painter::render()
and inspectstate
'sx
andy
variables.