File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/vs/editor/browser/view Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -133,8 +133,11 @@ export class ViewController {
133
133
const options = this . configuration . options ;
134
134
const selectionClipboardIsOn = ( platform . isLinux && options . get ( EditorOption . selectionClipboard ) ) ;
135
135
const columnSelection = options . get ( EditorOption . columnSelection ) ;
136
- if ( data . middleButton && ! selectionClipboardIsOn ) {
137
- this . _columnSelect ( data . position , data . mouseColumn , data . inSelectionMode ) ;
136
+ const scrollOnMiddleClick = options . get ( EditorOption . scrollOnMiddleClick ) ;
137
+ if ( data . middleButton && ! selectionClipboardIsOn && ( columnSelection || scrollOnMiddleClick ) ) {
138
+ if ( columnSelection ) {
139
+ this . _columnSelect ( data . position , data . mouseColumn , data . inSelectionMode ) ;
140
+ }
138
141
} else if ( data . startedOnLineNumbers ) {
139
142
// If the dragging started on the gutter, then have operations work on the entire line
140
143
if ( this . _hasMulticursorModifier ( data ) ) {
You can’t perform that action at this time.
0 commit comments