Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edge : Small circle doesn't follow the time circle line #2

Closed
caribouflex opened this issue Dec 8, 2017 · 2 comments
Closed

Edge : Small circle doesn't follow the time circle line #2

caribouflex opened this issue Dec 8, 2017 · 2 comments
Assignees

Comments

@caribouflex
Copy link
Owner

No description provided.

@caribouflex caribouflex self-assigned this Dec 8, 2017
@caribouflex
Copy link
Owner Author

caribouflex commented Dec 11, 2017

Fix :
On Edge + IE - CSS property Rotate and transform can't be used on a SVG element.
To fix that :

// On this both line we set the transform property to make the little circle rotate.
// Chrome can handle to style SVG with css, however IE can't. That's why we add the transform the the element as attribute.
// Chrome can handle the transition with the attribute, but firefox can't. That's why we have to keep the set on the stylesheet.
// IE and Edge both won't have the smooth transition (it will stay like a watch second hand)
this.$.eCPointer.setAttribute("transform", "rotate(" + v + ")");
this.$.eCPointer.style.transform = "rotate(" + v + "deg)";

set the transform attribute and the CSS property. Set the attribute on the eCPointer element (need to add a new id). Than change the css property with the transition as :

 #eCPointer {
    transition: transform 1s linear;
 }

@caribouflex
Copy link
Owner Author

This commit fix the issue, but the circle is not linear though. Issue to open if we want to put more time on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant