File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 4141 enabled : true ,
4242
4343 // Set this to false if you don't want to use the transition end property.
44- useTransitionEnd : false
44+ useTransitionEnd : false ,
45+
46+ // enable to force chrome to use hardware acceleration
47+ use3dChrome : true
4548 } ;
4649
4750 var div = document . createElement ( 'div' ) ;
165168 // forcing Chrome to not use the 3d transforms as well. Not sure if
166169 // translate is affectede, but not risking it. Detection code from
167170 // http://davidwalsh.name/detecting-google-chrome-javascript
168- if ( support . transform === 'WebkitTransform' && ! isChrome ) {
171+ if ( support . transform === 'WebkitTransform' && ( ! isChrome || $ . transit . use3dChrome ) ) {
169172 elem . style [ support . transform ] = value . toString ( true ) ;
170173 } else {
171174 elem . style [ support . transform ] = value . toString ( ) ;
727730 // toMS('fast') => $.fx.speeds[i] => "200ms"
728731 // toMS('normal') //=> $.fx.speeds._default => "400ms"
729732 // toMS(10) //=> '10ms'
730- // toMS('100ms') //=> '100ms'
733+ // toMS('100ms') //=> '100ms'
731734 //
732735 function toMS ( duration ) {
733736 var i = duration ;
You can’t perform that action at this time.
0 commit comments