Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In
src/define/animation.js
, properties.zoom
may have a value like…
… `{ level: 1 }` if an invalid zoom level is specified. The application of a zoom animation to the current zoom level is invalid. For example, animating from zoom:1 to zoom:1 doesn't make sense. When there is a case of an invalid zoom animation, the entire `zoom` animation value is discarded. This voids the animation. In the easing application routine, there is now an extra check for equal start and end values. While this does not affect the code path for the zoom:1 to zoom:1 example, it adds an extra layer of safety. Ref : Specifying a no-effect zoom animation causes an error #2614
- Loading branch information