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

Fix IE9: Incorrectly detects support for 3D Transforms #345

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions _src/jquery.iosslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@
var sliderOffset = 0;
xy = (xy == 'x') ? 4 : 5;

if(has3DTransform && !isIe7 && !isIe8) {
if(has3DTransform) {

var transforms = new Array('-webkit-transform', '-moz-transform', 'transform');
var transformArray;
Expand Down Expand Up @@ -620,7 +620,7 @@

sliderOffset = parseInt(sliderOffset, 10);

if(has3DTransform && !isIe7 && !isIe8) {
if(has3DTransform) {

$(node).css({
'msTransform': 'matrix(1,0,0,1,' + sliderOffset + ',0)',
Expand Down Expand Up @@ -678,6 +678,9 @@
} else if(isGecko && (parseInt(navigator.userAgent.split('/')[3], 10) >= 21)) {
//bug in v21+ which does not render slides properly in 3D
has3D = false;
} else if (isIe7 || isIe8 || isIe9) {
// http://caniuse.com/#feat=transforms3d
has3D = false;
} else if(testElement.attr('style') != undefined) {
has3D = true;
}
Expand Down