File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 46
46
}
47
47
.splitter_panel .right_panel {
48
48
right : 0 ;
49
+ }
50
+ .splitterMask {
51
+ position : absolute;
52
+ left : 0 ;
53
+ top : 0 ;
54
+ right : 0 ;
55
+ bottom : 0 ;
56
+ z-index : 1000 ;
49
57
}
Original file line number Diff line number Diff line change 224
224
} ) ;
225
225
} ) ;
226
226
$ ( document . documentElement ) . bind ( 'mousedown.splitter' , function ( e ) {
227
- if ( splitter_id !== null ) {
227
+ if ( splitter_id !== null && e . which == 1 ) {
228
228
current_splitter = splitters [ splitter_id ] ;
229
- $ ( '<div class="splitterMask"></div>' ) . insertAfter ( current_splitter ) ;
230
- if ( current_splitter . orientation == 'horizontal' ) {
231
- $ ( 'body' ) . css ( 'cursor' , 'row-resize' ) ;
232
- } else if ( current_splitter . orientation == 'vertical' ) {
233
- $ ( 'body' ) . css ( 'cursor' , 'col-resize' ) ;
234
- }
229
+ $ ( '<div class="splitterMask"></div>' ) . css ( 'cursor' , splitter . css ( 'cursor' ) ) . insertAfter ( current_splitter ) ;
235
230
current_splitter . settings . onDragStart ( e ) ;
236
231
return false ;
237
232
}
238
233
} ) . bind ( 'mouseup.splitter' , function ( e ) {
239
234
if ( current_splitter ) {
240
235
$ ( '.splitterMask' ) . remove ( ) ;
241
- $ ( 'body' ) . css ( 'cursor' , 'auto' ) ;
242
236
current_splitter . settings . onDragEnd ( e ) ;
243
237
current_splitter = null ;
244
238
}
You can’t perform that action at this time.
0 commit comments