This commit is contained in:
Daniel Imms
2026-05-27 19:58:21 -07:00
parent acd2472961
commit 2069176528
+3 -5
View File
@@ -88,12 +88,10 @@ export class DecorationService extends Disposable implements IDecorationService
if (!bucket) {
return;
}
let xmin = 0;
let xmax = 0;
for (const d of bucket) {
xmin = d.options.x ?? 0;
xmax = xmin + (d.options.width ?? 1);
if (x >= xmin && x < xmax && (!layer || (d.options.layer ?? 'bottom') === layer)) {
$xmin = d.options.x ?? 0;
$xmax = $xmin + (d.options.width ?? 1);
if (x >= $xmin && x < $xmax && (!layer || (d.options.layer ?? 'bottom') === layer)) {
yield d;
}
}