Skip to content

Commit

Permalink
Fix SVG hoshi points being too small on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Oct 14, 2024
1 parent dd65a55 commit 9148b5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Goban/SVGRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3646,7 +3646,8 @@ export class SVGRenderer extends Goban implements GobanSVGInterface {
}

if (hoshi) {
const r = this.square_size * 0.075;
const r = this.square_size < 5 ? 0.5 : Math.max(2, this.square_size * 0.075);

for (let i = 0; i < hoshi.length; ++i) {
const [hx, hy] = hoshi[i];
const circle = document.createElementNS("http://www.w3.org/2000/svg", "circle");
Expand Down

0 comments on commit 9148b5d

Please sign in to comment.