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

IE8 and IE10 scrollProperty transform bug fixes #39

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

reavis
Copy link

@reavis reavis commented May 22, 2013

I ran across some bugs in IE when using scrollProperty transform. These fixes are working for me and I thought you might want to incorporate them,

The matrix3d fix is based on this iscroll commit: cubiq/iscroll@d31d6e6

getComputedStyle on IE10 returns matrix3d insead of matrix, so
different elements elements need to be used for the x and y offsets in
that case.
@markdalgleish
Copy link
Owner

Thanks for the pull request! The IE10 fix looks great, but I'm not sure why you're trying to fix the 'transform' adapter for IE8 when it doesn't support CSS transforms at all. Am I missing something?

@reavis
Copy link
Author

reavis commented Jun 11, 2013

I guess it's only appropriate to use the transform adapter after doing feature detection to make sure that transforms are supported. I was working on a project where we didn't bother with feature detection. Instead of degrading gracefully, IE8 would throw a JavaScript error that would halt processing of other scripts. Commit 42ede39 allowed our site to degrade more gracefully and retain more JavaScript functionality.

If you prefer not to incorporate that change, I'm happy to update this pull request so it only includes the IE10 fix.

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

Successfully merging this pull request may close these issues.

2 participants