Skip to content

Commit ed0b26c

Browse files
authored
Merge branch 'main' into all-contributors/add-re7l
2 parents adc13f8 + 9311bc6 commit ed0b26c

File tree

3 files changed

+40
-4
lines changed

3 files changed

+40
-4
lines changed

.all-contributorsrc

+29-1
Original file line numberDiff line numberDiff line change
@@ -6233,7 +6233,8 @@
62336233
"avatar_url": "https://avatars.githubusercontent.com/u/7389189?v=4",
62346234
"profile": "https://github.com/AaratiAkkapeddi",
62356235
"contributions": [
6236-
"code"
6236+
"code",
6237+
"ideas"
62376238
]
62386239
},
62396240
{
@@ -6710,6 +6711,33 @@
67106711
"contributions": [
67116712
"ideas"
67126713
]
6714+
},
6715+
{
6716+
"login": "himanshuukholiya",
6717+
"name": "Himanshu Kholiya",
6718+
"avatar_url": "https://avatars.githubusercontent.com/u/128818464?v=4",
6719+
"profile": "https://github.com/himanshuukholiya",
6720+
"contributions": [
6721+
"code"
6722+
]
6723+
},
6724+
{
6725+
"login": "mclark414",
6726+
"name": "mclark414",
6727+
"avatar_url": "https://avatars.githubusercontent.com/u/26391144?v=4",
6728+
"profile": "https://github.com/mclark414",
6729+
"contributions": [
6730+
"ideas"
6731+
]
6732+
},
6733+
{
6734+
"login": "mxramsey",
6735+
"name": "Mx. Ramsey",
6736+
"avatar_url": "https://avatars.githubusercontent.com/u/161327383?v=4",
6737+
"profile": "https://github.com/mxramsey",
6738+
"contributions": [
6739+
"ideas"
6740+
]
67136741
}
67146742
],
67156743
"repoType": "github",

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ We recognize all types of contributions. This project follows the [all-contribut
10441044
<td align="center" valign="top" width="16.66%"><a href="https://github.com/c-dacanay"><img src="https://avatars.githubusercontent.com/u/54914834?v=4?s=120" width="120px;" alt="c-dacanay"/><br /><sub><b>c-dacanay</b></sub></a><br /><a href="#design-c-dacanay" title="Design">🎨</a> <a href="#eventOrganizing-c-dacanay" title="Event Organizing">📋</a> <a href="#example-c-dacanay" title="Examples">💡</a></td>
10451045
<td align="center" valign="top" width="16.66%"><a href="https://github.com/mathewpan2"><img src="https://avatars.githubusercontent.com/u/112679001?v=4?s=120" width="120px;" alt="mathewpan2"/><br /><sub><b>mathewpan2</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=mathewpan2" title="Code">💻</a></td>
10461046
<td align="center" valign="top" width="16.66%"><a href="https://github.com/cog25"><img src="https://avatars.githubusercontent.com/u/74242561?v=4?s=120" width="120px;" alt="cog25"/><br /><sub><b>cog25</b></sub></a><br /><a href="#translation-cog25" title="Translation">🌍</a></td>
1047-
<td align="center" valign="top" width="16.66%"><a href="https://github.com/AaratiAkkapeddi"><img src="https://avatars.githubusercontent.com/u/7389189?v=4?s=120" width="120px;" alt="Aarati Akkapeddi "/><br /><sub><b>Aarati Akkapeddi </b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=AaratiAkkapeddi" title="Code">💻</a></td>
1047+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/AaratiAkkapeddi"><img src="https://avatars.githubusercontent.com/u/7389189?v=4?s=120" width="120px;" alt="Aarati Akkapeddi "/><br /><sub><b>Aarati Akkapeddi </b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=AaratiAkkapeddi" title="Code">💻</a> <a href="#ideas-AaratiAkkapeddi" title="Ideas, Planning, & Feedback">🤔</a></td>
10481048
</tr>
10491049
<tr>
10501050
<td align="center" valign="top" width="16.66%"><a href="https://mayaarguelles.com/"><img src="https://avatars.githubusercontent.com/u/29130029?v=4?s=120" width="120px;" alt="Maya Arguelles"/><br /><sub><b>Maya Arguelles</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=mayaarguelles" title="Code">💻</a></td>
@@ -1113,6 +1113,9 @@ We recognize all types of contributions. This project follows the [all-contribut
11131113
<tr>
11141114
<td align="center" valign="top" width="16.66%"><a href="https://github.com/webermayank"><img src="https://avatars.githubusercontent.com/u/111176033?v=4?s=120" width="120px;" alt="Mayank Verma"/><br /><sub><b>Mayank Verma</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=webermayank" title="Code">💻</a></td>
11151115
<td align="center" valign="top" width="16.66%"><a href="https://github.com/re7l"><img src="https://avatars.githubusercontent.com/u/19353655?v=4?s=120" width="120px;" alt="Carrie Wang"/><br /><sub><b>Carrie Wang</b></sub></a><br /><a href="#ideas-re7l" title="Ideas, Planning, & Feedback">🤔</a></td>
1116+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/himanshuukholiya"><img src="https://avatars.githubusercontent.com/u/128818464?v=4?s=120" width="120px;" alt="Himanshu Kholiya"/><br /><sub><b>Himanshu Kholiya</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=himanshuukholiya" title="Code">💻</a></td>
1117+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/mclark414"><img src="https://avatars.githubusercontent.com/u/26391144?v=4?s=120" width="120px;" alt="mclark414"/><br /><sub><b>mclark414</b></sub></a><br /><a href="#ideas-mclark414" title="Ideas, Planning, & Feedback">🤔</a></td>
1118+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/mxramsey"><img src="https://avatars.githubusercontent.com/u/161327383?v=4?s=120" width="120px;" alt="Mx. Ramsey"/><br /><sub><b>Mx. Ramsey</b></sub></a><br /><a href="#ideas-mxramsey" title="Ideas, Planning, & Feedback">🤔</a></td>
11161119
</tr>
11171120
</tbody>
11181121
</table>

src/accessibility/outputs.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,13 @@ p5.prototype._getPos = function (x, y) {
579579
function _canvasLocator(args, canvasWidth, canvasHeight) {
580580
const noRows = 10;
581581
const noCols = 10;
582-
let locX = Math.floor(args[0] / canvasWidth * noRows);
583-
let locY = Math.floor(args[1] / canvasHeight * noCols);
582+
let x = args[0];
583+
let y = args[1];
584+
if (x < 0 || x >= canvasWidth || y < 0 || y >= canvasHeight) {
585+
return null;
586+
}
587+
let locX = Math.floor(x / canvasWidth * noRows);
588+
let locY = Math.floor(y / canvasHeight * noCols);
584589
if (locX === noRows) {
585590
locX = locX - 1;
586591
}

0 commit comments

Comments
 (0)