From 2dea424b4c26b5ec459df471c73323879fc3569d Mon Sep 17 00:00:00 2001 From: Rob Colburn Date: Mon, 25 Aug 2014 11:59:35 -0700 Subject: [PATCH] Fix IE9: Incorrectly detects support for 3D Transforms --- _src/jquery.iosslider.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/_src/jquery.iosslider.js b/_src/jquery.iosslider.js index 75e8ed7..605ca81 100644 --- a/_src/jquery.iosslider.js +++ b/_src/jquery.iosslider.js @@ -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; @@ -620,7 +620,7 @@ sliderOffset = parseInt(sliderOffset, 10); - if(has3DTransform && !isIe7 && !isIe8) { + if(has3DTransform) { $(node).css({ 'msTransform': 'matrix(1,0,0,1,' + sliderOffset + ',0)', @@ -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; }