File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,12 @@ <h3 class="header">Options</h3>
127
127
< td > true</ td >
128
128
< td > Allow swipe gestures to open/close Sidenav.</ td >
129
129
</ tr >
130
+ < tr >
131
+ < td > dragTargetWidth</ td >
132
+ < td > String</ td >
133
+ < td > '10px'</ td >
134
+ < td > Width of the area where you can start dragging.</ td >
135
+ </ tr >
130
136
< tr >
131
137
< td > inDuration</ td >
132
138
< td > Number</ td >
@@ -397,4 +403,4 @@ <h4>Fixed HTML Structure</h4>
397
403
</ div >
398
404
399
405
</ div >
400
- </ div >
406
+ </ div >
Original file line number Diff line number Diff line change 4
4
let _defaults = {
5
5
edge : 'left' ,
6
6
draggable : true ,
7
+ dragTargetWidth : '10px' ,
7
8
inDuration : 250 ,
8
9
outDuration : 200 ,
9
10
onOpenStart : null ,
34
35
* @member Sidenav#options
35
36
* @prop {String } [edge='left'] - Side of screen on which Sidenav appears
36
37
* @prop {Boolean } [draggable=true] - Allow swipe gestures to open/close Sidenav
38
+ * @prop {String } [dragTargetWidth='10px'] - Width of the area where you can start dragging
37
39
* @prop {Number } [inDuration=250] - Length in ms of enter transition
38
40
* @prop {Number } [outDuration=200] - Length in ms of exit transition
39
41
* @prop {Function } onOpenStart - Function called when sidenav starts entering
394
396
_createDragTarget ( ) {
395
397
let dragTarget = document . createElement ( 'div' ) ;
396
398
dragTarget . classList . add ( 'drag-target' ) ;
399
+ dragTarget . style . width = this . options . dragTargetWidth ;
397
400
document . body . appendChild ( dragTarget ) ;
398
401
this . dragTarget = dragTarget ;
399
402
}
You can’t perform that action at this time.
0 commit comments