TypeError: undefined is not a function error for iOS devices with Retina displays on 1.18.3
See original GitHub issueDescribe the bug
The same error that was described in issue https://github.com/matteobruni/tsparticles/issues/84 is still occurring on version 1.18.3
. Desktop (including macOS with Retina display) and Android browsers seem to behave correctly, but iPhone and iPad on both Chrome and Safari will show the error exactly on this line https://github.com/matteobruni/tsparticles/blob/7784898e703dc04ae5b7cf7d69a9fb18baece16c/core/main/src/Core/Retina.ts#L51-L56
To Reproduce Steps to reproduce the behavior:
- create a react app that imports
react-tsparticles@1.18.3
- copy the particle options from this example https://codepen.io/matteobruni/pen/BaoZBZy
- start a development server
- access the development server from an iOS device
- see the error
Expected behavior The polygon mask particle effect should be correctly displayed
Screenshots
Smartphone (please complete the following information):
- Device: iPhone, iPad
- OS: iOS 13
- Browser Safari, Chrome
Additional context
As you can see from the screenshot, I have tested from both the template (manually updated the package to be 1.18.3
) app and the website I was working on (made with Gatsby), on the same package version.
I was only able to test this using react.
Additionally, the web application that is deployed on a remote server is showing the same issue as well, albeit with a white blank screen right before the particle load instead of any error messages.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Yes, it’s all working now.
Thank you very much!
I’m releasing the version
1.18.10
that could fix this issue, this version will be released very soon, let me know if that version fixes this issue