Fix selectionForeground column select mode on dom/canvas

This commit is contained in:
Daniel Imms
2022-05-17 12:10:52 -07:00
parent 18a2751471
commit d1a87facfd
4 changed files with 34 additions and 5 deletions
+4
View File
@@ -569,6 +569,10 @@ export abstract class BaseRenderLayer implements IRenderLayer {
if (!start || !end) {
return false;
}
if (this._columnSelectMode) {
return x >= start[0] && y >= start[1] &&
x < end[0] && y < end[1];
}
return (y > start[1] && y < end[1]) ||
(start[1] === end[1] && y === start[1] && x >= start[0] && x < end[0]) ||
(start[1] < end[1] && y === end[1] && x < end[0]) ||