Skip to content

Commit c3239a3

Browse files
authored
Make Doodles Clickable Pt.2 (#16)
* add tag info to doodles * add click handling to Doodles * those darn tests * fix comments * flipped a >...
1 parent cdb175a commit c3239a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doodle/canvas.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const Canvas = ({
6969

7070
const tagToColor = tag => {
7171
if (tag === 'none') {
72-
// this is an untagged (in progress) doodle
72+
// this is an unlabelled (in progress) doodle
7373
return '#000000';
7474
}
7575
const tagNum = parseInt(tag.substring(1), 10) + 1;
@@ -93,7 +93,7 @@ const Canvas = ({
9393
xPos > 0 &&
9494
xPos < boundingBox.width &&
9595
yPos > 0 &&
96-
yPos > boundingBox.height
96+
yPos < boundingBox.height
9797
) {
9898
// get the color of the pixel clicked ony
9999
const hitColor = hitCtx.getImageData(xPos, yPos, 1, 1).data;

0 commit comments

Comments
 (0)