Merge pull request #1659 from karlnack/fix-ff-maxbounds

Update L.PosAnimation._transformRe to account for units (fixes #1658)
This commit is contained in:
Vladimir Agafonkin 2013-05-07 11:14:31 -07:00
commit 68c45bc9fe

View File

@ -49,7 +49,7 @@ L.PosAnimation = L.Class.extend({
// you can't easily get intermediate values of properties animated with CSS3 Transitions,
// we need to parse computed style (in case of transform it returns matrix string)
_transformRe: /(-?[\d\.]+), (-?[\d\.]+)\)/,
_transformRe: /([-+]?(?:\d*\.)?\d+)\D*, ([-+]?(?:\d*\.)?\d+)\D*\)/,
_getPos: function () {
var left, top, matches,