File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1+ const isBrowser = typeof window !== 'undefined' ;
2+ let Modernizr = isBrowser ? require ( './utils/modernizr.custom' ) : undefined ;
3+
14let React = require ( 'react' ) ;
25let KeyCode = require ( './utils/key-code' ) ;
36let StylePropable = require ( './mixins/style-propable' ) ;
@@ -106,7 +109,7 @@ let LeftNav = React.createClass({
106109 width : this . getTheme ( ) . width ,
107110 position : 'fixed' ,
108111 zIndex : 10 ,
109- left : 0 ,
112+ left : isBrowser && Modernizr . csstransforms3d ? 0 : x ,
110113 top : 0 ,
111114 transform : 'translate3d(' + x + 'px, 0, 0)' ,
112115 transition : ! this . state . swiping && Transitions . easeOut ( ) ,
@@ -128,6 +131,7 @@ let LeftNav = React.createClass({
128131 right : 0 ,
129132 } ,
130133 } ;
134+
131135 styles . menuItemLink = this . mergeAndPrefix ( styles . menuItem , {
132136 display : 'block' ,
133137 textDecoration : 'none' ,
You can’t perform that action at this time.
0 commit comments