Skip to content

Commit

Permalink
fix sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
fohristiwhirl committed Jun 18, 2019
1 parent 9917dba commit 25f27e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 95_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,8 @@ function NewRenderer() {
}

let img = images[piece_to_draw].cloneNode(); // Note images are draggable by default.
img.width = this.square_size();
img.height = this.square_size();
img.ondragstart = (event) => {
this.set_active_square(Point(x, y));
event.dataTransfer.setData("text", "overlay_" + s);
Expand Down

0 comments on commit 25f27e3

Please sign in to comment.