提交 cfc010dc 编写于 作者: P Peng Lyu

Fix #56818. Mouse position validation for folding, scm and comments.

上级 57f13b7f
......@@ -339,7 +339,7 @@ export class FoldingController implements IEditorContribution {
// const gutterOffsetX = data.offsetX - data.glyphMarginWidth - data.lineNumbersWidth - data.glyphMarginLeft;
// TODO@joao TODO@alex TODO@martin this is such that we don't collide with dirty diff
if (gutterOffsetX < 10) {
if (gutterOffsetX < 5) { // the whitespace between the border and the real folding icon border is 5px
return;
}
......
......@@ -712,7 +712,7 @@ export class DirtyDiffController implements IEditorContribution {
const gutterOffsetX = data.offsetX - offsetLeftInGutter;
// TODO@joao TODO@alex TODO@martin this is such that we don't collide with folding
if (gutterOffsetX < 0 || gutterOffsetX > 10) {
if (gutterOffsetX < -3 || gutterOffsetX > 6) { // dirty diff decoration on hover is 9px wide
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册