We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 389b77d commit 0b0256eCopy full SHA for 0b0256e
src/accessibility/gridOutput.js
@@ -66,7 +66,9 @@ function _gridMap(idT, ingredients) {
66
// Check if shape is in canvas, skip if not
67
if(
68
ingredients[x][y].loc.locY < cells.length &&
69
- ingredients[x][y].loc.locX < cells[ingredients[x][y].loc.locY].length
+ ingredients[x][y].loc.locY >= 0 && ingredients[x][y].loc.locX >= 0
70
+ ingredients[x][y].loc.locX < cells[ingredients[x][y].loc.locY].length
71
+
72
){
73
//if empty cell of location of shape is undefined
74
if (!cells[ingredients[x][y].loc.locY][ingredients[x][y].loc.locX]) {
0 commit comments