File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 28
28
29
29
.opener {
30
30
position : absolute ;
31
- top : 0 ;
31
+ top : 45 px ;
32
32
bottom : 0 ;
33
- width : 10 px ;
33
+ width : 32 px ;
34
34
left : 285px ;
35
35
}
36
36
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ export default class SidebarMobile extends React.Component {
123
123
124
124
_handleTouchStart ( e ) {
125
125
initialTouchPosition . x = e . touches [ 0 ] . pageX ;
126
- initialTouchPosition . y = e . touches [ 0 ] . clientY ;
126
+ initialTouchPosition . y = e . touches [ 0 ] . pageY ;
127
127
//for instant transform along with the touch
128
128
this . container . classList . add ( "no-delay" ) ;
129
129
}
@@ -137,7 +137,7 @@ export default class SidebarMobile extends React.Component {
137
137
e . preventDefault ( ) ;
138
138
this . container . style . transform = "translateX(-" + xDiff + "px)" ;
139
139
lastTouchPosition . x = e . touches [ 0 ] . pageX ;
140
- lastTouchPosition . y = e . touches [ 0 ] . clientY ;
140
+ lastTouchPosition . y = e . touches [ 0 ] . pageY ;
141
141
}
142
142
}
143
143
@@ -150,7 +150,7 @@ export default class SidebarMobile extends React.Component {
150
150
e . preventDefault ( ) ;
151
151
this . container . style . transform = "translateX(calc(-100% + " + xDiff + "px))" ;
152
152
lastTouchPosition . x = e . touches [ 0 ] . pageX ;
153
- lastTouchPosition . y = e . touches [ 0 ] . clientY ;
153
+ lastTouchPosition . y = e . touches [ 0 ] . pageY ;
154
154
}
155
155
}
156
156
You can’t perform that action at this time.
0 commit comments