Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/core/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,11 @@ function environment(p5, fn, lifecycles){
cursor = type;
} else if (typeof type === 'string') {
let coords = '';
if (x && y && (typeof x === 'number' && typeof y === 'number')) {
if (typeof x === 'number') { // fix for #8323
y = typeof y === 'number' ? y : 0;
// Note that x and y values must be unit-less positive integers < 32
// https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
coords = `${x} ${y}`;
coords = `${Math.max(x,0)} ${Math.max(y,0)}`;
}
if (
type.substring(0, 7) === 'http://' ||
Expand Down