p5.js icon indicating copy to clipboard operation
p5.js copied to clipboard

[p5.js 2.0+ Bug Report]: loadingAnimation() positioning edge case

Open ksen0 opened this issue 1 month ago • 2 comments

Most appropriate sub-area of p5.js?

  • [ ] Accessibility
  • [ ] Color
  • [ ] Core/Environment/Rendering
  • [ ] Data
  • [ ] DOM
  • [ ] Events
  • [ ] Image
  • [ ] IO
  • [ ] Math
  • [ ] Typography
  • [ ] Utilities
  • [ ] WebGL
  • [ ] WebGPU
  • [ ] p5.strands
  • [ ] Build process
  • [ ] Unit testing
  • [ ] Internationalization
  • [ ] Friendly errors
  • [x] Other (specify if possible)

p5.js version

2.4.0-rc.2

Web browser and version

No response

Operating system

No response

Steps to reproduce this

In this sketch: https://openprocessing.org/@p5js/3047791 The loading animation overlay affects the left sketch which is the 2.3.4 one. The expected behavior is that it should be affecting the rightmost one:

https://github.com/user-attachments/assets/e8c9262d-2699-40b4-8dea-0c4268228585

This is related to recent addition of loadingAnimation()

ksen0 avatar Oct 29 '26 08:10 ksen0

Hi @Jextic ! The sketch above uses relative positioning and that seems to confuse the overlay too. Let me know if you want to work on this - or I could mark it open to volunteers. If it's open to others, please do review their work if you have time and interest!

ksen0 avatar Oct 29 '26 08:10 ksen0

Hi @ksen0, thanks for letting me know about this. I'd like to take a look at this over the weekend to see if I can resolve and the debug the issue.

Jextic avatar Oct 29 '26 22:10 Jextic