You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found an issue using P5 with P5Play and it's about that world.mouseSprites[0] is loss when a mouse click on a sprite.
The exception is raised is:
Uncaught ReferenceError: assignment to undeclared variable ms
raised in the following line:
if($.world.mouseSprites.length){letmsm=$.world.mouseSprite?.mouse;// old mouse sprite didn't have the mouse released on itif(msm){msm[btn]=0;msm.hover=0;msm.drag[btn]=0;}ms=$.world.mouseSprites[0];$.world.mouseSprite=ms;// <---- ERROR raised heremsm=ms.mouse;msm[btn]=1;if(msm.hover<=0)msm.hover=1;}
It seems that after that "$.world.mouseSprites.length" condition is passed the reference to "$.world.mouseSprites[0]" is loss.
I tested this issue in Firefox and Safari with the same result.
I found an issue using P5 with P5Play and it's about that world.mouseSprites[0] is loss when a mouse click on a sprite.
The exception is raised is:
raised in the following line:
It seems that after that "$.world.mouseSprites.length" condition is passed the reference to "$.world.mouseSprites[0]" is loss.
I tested this issue in Firefox and Safari with the same result.
Dependencies:
You can reproduce this issue in codesandbox:
https://codesandbox.io/p/github/juanparati/p5p5play-ts/main?import=true
Steps to reproduce:
The text was updated successfully, but these errors were encountered: