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 41
41
enabled : true ,
42
42
43
43
// 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
45
48
} ;
46
49
47
50
var div = document . createElement ( 'div' ) ;
165
168
// forcing Chrome to not use the 3d transforms as well. Not sure if
166
169
// translate is affectede, but not risking it. Detection code from
167
170
// http://davidwalsh.name/detecting-google-chrome-javascript
168
- if ( support . transform === 'WebkitTransform' && ! isChrome ) {
171
+ if ( support . transform === 'WebkitTransform' && ( ! isChrome || $ . transit . use3dChrome ) ) {
169
172
elem . style [ support . transform ] = value . toString ( true ) ;
170
173
} else {
171
174
elem . style [ support . transform ] = value . toString ( ) ;
727
730
// toMS('fast') => $.fx.speeds[i] => "200ms"
728
731
// toMS('normal') //=> $.fx.speeds._default => "400ms"
729
732
// toMS(10) //=> '10ms'
730
- // toMS('100ms') //=> '100ms'
733
+ // toMS('100ms') //=> '100ms'
731
734
//
732
735
function toMS ( duration ) {
733
736
var i = duration ;
You can’t perform that action at this time.
0 commit comments