Hi,
thanks - right, there is a bug in the webvr.js that relates to iOS.
There a code line like this:
|
Source code
|
1
|
document.addEventListener(device.browser.events.fullscreenchange, on_fullscreen_change);
|
but the 'fullscreenchange' is undefined because there is no HTML5 fullscreen API support in iOS.
This will be fixed in the next release.
I think normal browsers are just converting the first argument to a string, so the event name would be 'undefined' and that wouldn't have any effect.
If it's possible to edit the Cordova code I would recommend changing:
|
Source code
|
1
|
var e = evt.toLowerCase();
|
to:
|
Source code
|
1
|
var e = (""+evt).toLowerCase();
|
Then this the argument will be always converted to a String and even invalid usage cases will be handled well.
Best regards,
Klaus