Skip to content

Commit

Permalink
dont set maxCol on up/down
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Nov 22, 2024
1 parent 5ea47ad commit 3996476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pixelfonts/pixelfont-editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ <h2>🌱 pixelfont editor</h2>
this.row--;
this.col = Math.min(this.maxCol, lines[this.row].length);
} else {
this.col = this.maxCol = 0;
this.col = 0;
}
}
moveDown() {
Expand All @@ -250,7 +250,7 @@ <h2>🌱 pixelfont editor</h2>
this.row++;
this.col = Math.min(this.maxCol, lines[this.row].length);
} else {
this.col = this.maxCol = lines[this.row].length;
this.col = lines[this.row].length;
}
}
getCaretIndex() {
Expand Down

0 comments on commit 3996476

Please sign in to comment.