File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/vs/editor/browser/widget/diffEditor Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,8 @@ export class InlineDiffDeletedCodeMargin extends Disposable {
130
130
} ;
131
131
132
132
this . _register ( addStandardDisposableListener ( this . _diffActions , 'mousedown' , e => {
133
+ if ( ! e . leftButton ) { return ; }
134
+
133
135
const { top, height } = getDomNodePagePosition ( this . _diffActions ) ;
134
136
const pad = Math . floor ( lineHeight / 3 ) ;
135
137
e . preventDefault ( ) ;
@@ -146,7 +148,7 @@ export class InlineDiffDeletedCodeMargin extends Disposable {
146
148
} ) ) ;
147
149
148
150
this . _register ( _modifiedEditor . onMouseDown ( ( e : IEditorMouseEvent ) => {
149
- if ( ! e . event . rightButton ) { return ; }
151
+ if ( ! e . event . leftButton ) { return ; }
150
152
151
153
if ( e . target . type === MouseTargetType . CONTENT_VIEW_ZONE || e . target . type === MouseTargetType . GUTTER_VIEW_ZONE ) {
152
154
const viewZoneId = e . target . detail . viewZoneId ;
You can’t perform that action at this time.
0 commit comments