Skip to content

Commit

Permalink
Fix scratch layer rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
lewish committed May 30, 2024
1 parent 8ac0365 commit 394b3cd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,12 @@ function render(canvas: HTMLCanvasElement) {
}
}
for (const [position, value] of committed.entries()) {
if (constants.ALL_SPECIAL_VALUES.includes(value)) {
// highlight(position, colors.highlight);
}
const cellValue = committed.get(position);
text(position, cellValue);
}
for (const [position] of scratch.entries()) {
highlight(position, colors.highlight);
const cellValue = committed.get(position);
const cellValue = scratch.get(position);
text(position, cellValue);
}

Expand Down

0 comments on commit 394b3cd

Please sign in to comment.