-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
BugError or unexpected behaviorsError or unexpected behaviors
Description
p5.js version
1.11.1
What is your operating system?
Mac OS
Web browser and version
Firefox 135.0.1
Actual Behavior
This simple sketch is breaking if the table-text option in enabled in accessibility configuration.
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
line(10, 10, 100, -100)
}Here is the error message:
TypeError: cells[ingredients[x][y].loc.locY] is undefined
at undefined:53353:93
🌸 p5.js says:
[p5.js, line 53353] Cannot read property of undefined. Check the line number in error and make sure the variable which is being operated is not undefined.
- More info: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Cant_access_property#what_went_wrong
┌[https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.1/p5.js:53353:93]
Error at line 53353 in _gridMap()
└[https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.1/p5.js:53318:34]
Called from line 53318 in [286]</_main.default.prototype._updateGridOutput()
└[https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.1/p5.js:53870:20]
Called from line 53870 in [287]</_main.default.prototype._updateAccsOutput()
└[https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.1/p5.js:79142:22]
Called from line 79142 in [318]</_main.default.prototype.redraw()
└[https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.1/p5.js:66335:23]
Called from line 66335 in [306]</p5/this._draw()
Expected Behavior
No error, even with the table-text option enabled
Steps to reproduce
Steps:
- Open a new sketch on editor.p5js.org
- Pate the code below
- Enable the table-text option in Accessibility preferences
- Run and see the error
Snippet:
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
line(10, 10, 100, -100)
}Metadata
Metadata
Assignees
Labels
BugError or unexpected behaviorsError or unexpected behaviors