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

Slip doesn't work in IE9 #36

Open
aarfing opened this issue Nov 26, 2014 · 3 comments
Open

Slip doesn't work in IE9 #36

aarfing opened this issue Nov 26, 2014 · 3 comments

Comments

@aarfing
Copy link

aarfing commented Nov 26, 2014

Hey pornel,

Just did a drag and drop test in IE9 and it doesn't work.

You're not able to drag an item - and it shows no erros in the console. I think it either should work in IE9 or it should be feature-detectable, so a proper fallback can be used.

Also -ms-user-select: none; should be added to your demo for improved IE support :)

@kornelski
Copy link
Owner

Thanks for checking it. Could you investigate what is failing? Does it fire mouse events?

@aarfing
Copy link
Author

aarfing commented Nov 27, 2014

Ok, so I did some investigating and made it work. The problem is that while IE9 understands 'transform' as a CSS property, in JavaScript it needs the 'ms'-prefix like so: 'msTransform', so a simple test for that makes it work.

@aarfing
Copy link
Author

aarfing commented Nov 27, 2014

Actually IE9 needs a prefix on the CSS property as well, so a simple verbose proof of concept would be:

var transformPrefix = "webkitTransform" in testElement.style ? "webkitTransform" : "transform";
if(transformPrefix === "transform"){
transformPrefix = "msTransform" in testElement.style ? "msTransform" : "transform";
}
var transformProperty = transformPrefix === "webkitTransform" ? "-webkit-transform" : "transform";
if(transformProperty === "transform"){
transformProperty = transformPrefix === "msTransform" ? "-ms-transform" : "transform";
}

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

2 participants