Skip to content

rotate stopped near 0 #10

@pond918

Description

@pond918

cause: pos results as 1.e-16, which makes the rotateUnits incorrect.
fix:
jquery-animate-css-rotate-scale.js line39
change from:
m = val.toString().match(/^(-?\d+(.\d+)?)(.+)?$/);
to
m = val.toString().match(/^(-?\d+(.\d*e?-?\d+)?)(.+)?$/);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions