Skip to content

Commit 6f922bf

Browse files
committed
1 parent 309607f commit 6f922bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vs/editor/browser/widget/diffEditor/inlineDiffDeletedCodeMargin.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ export class InlineDiffDeletedCodeMargin extends Disposable {
130130
};
131131

132132
this._register(addStandardDisposableListener(this._diffActions, 'mousedown', e => {
133+
if (!e.leftButton) { return; }
134+
133135
const { top, height } = getDomNodePagePosition(this._diffActions);
134136
const pad = Math.floor(lineHeight / 3);
135137
e.preventDefault();
@@ -146,7 +148,7 @@ export class InlineDiffDeletedCodeMargin extends Disposable {
146148
}));
147149

148150
this._register(_modifiedEditor.onMouseDown((e: IEditorMouseEvent) => {
149-
if (!e.event.rightButton) { return; }
151+
if (!e.event.leftButton) { return; }
150152

151153
if (e.target.type === MouseTargetType.CONTENT_VIEW_ZONE || e.target.type === MouseTargetType.GUTTER_VIEW_ZONE) {
152154
const viewZoneId = e.target.detail.viewZoneId;

0 commit comments

Comments
 (0)