Repository navigation
Only run Style::updateProperties when required - #1155
Conversation
This brings the easing transition code a bit closer to how easings work in gl-js. Instead of having an array of individual transitions for scale, rotate, and pan, there is a single transition function that does all the required calculations. This permits us to: * Eliminate the "timeout" transition. (Fixes #126) * Remove the start/stopPanning() and similar functions from the API. The transform is capable of determining when a transition that affects the pan position is in effect. (Fixes #79) * Run style recalculations only when an ease transition that affects the zoom is in progress. (Fixes #1155)
|
From #1176:
|
|
(Android is still calling |
|
@kkaefer Do you want to keep |
|
I think we should keep it. Combining them to one call is fine, but we'd need to still track them individually in the view code. |
This brings the easing transition code a bit closer to how easings work in gl-js. Instead of having an array of individual transitions for scale, rotate, and pan, there is a single transition function that does all the required calculations. This permits us to: * Eliminate the "timeout" transition. (Fixes #126) * Replace start/stopPanning() et al with setGestureInProgress(). Apps or SDKs are expected to make paired calls to setGestureInProgress(). This state will be ORed with the active easing state to determine when to use texture interpolation. (Fixes #79) * Run style recalculations only when an ease transition that affects the zoom is in progress. (Fixes #1155)
d7a161d to
12c07b9
Compare
|
Replaced |
Only run Style::updateProperties when required
|
We should also grab |


We're currently running
Style::updatePropertiestoo often; whenever anything about the transform changes. However, we only need to run it on zoom, or when adding/removing classes.