Surface plot works in iPhone but not in iPad

I include some 3d graphics in an app (via webView).
Graphs works fine in the iPhone, but on the iPad surfaces disappear (not the whole graphics, surface only).
First capture is of iPhone, and second of iPad

The figure below is mine, the figure above is taken from examples.

  • I don’t know what’s going on. Any ideas?


I have managed to get it to work, although I don’t understand what I have done.
I found this at Fix gl3D on iOS by etpinard · Pull Request #1411 · plotly/plotly.js · GitHub

Although the problem wasn’t exactly the same (there the 3D figures didn’t appear at all on iPad, and I only had a failure with the ‘surface’), and in the latest version of plotly.js it doesn’t appear “preferFloat: !y” but “preferFloat: !p”, when I replace it with “preferFloat: 0” my figures start working correctly, iPad included.