Skip to content

Commit

Permalink
fix: prioritize diff revert arrow over breakpoints (microsoft#198895)
Browse files Browse the repository at this point in the history
* fix: prioritize diff revert arrow over breakpoints

* fix: revert icon shouldn't disable gutter context menu
  • Loading branch information
joyceerhl committed Nov 22, 2023
1 parent d80f451 commit ef71b03
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,11 @@ class RevertButton implements IGlyphMarginWidget {
private readonly _selection: boolean,
) {
this._domNode.onmousedown = e => {
e.stopPropagation();
e.preventDefault();
// don't prevent context menu from showing up
if (e.button !== 2) {
e.stopPropagation();
e.preventDefault();
}
};
this._domNode.onmouseup = e => {
e.stopPropagation();
Expand Down Expand Up @@ -251,7 +254,7 @@ class RevertButton implements IGlyphMarginWidget {
endColumn: 1,
endLineNumber: this._lineNumber,
},
zIndex: 0,
zIndex: 10001,
};
}
}

0 comments on commit ef71b03

Please sign in to comment.