Hi,
Small bug report.
For a few versions now, the "openurl" action when called by an "ondown" causes a black screen when you return to the virtual visit tab.
Hi,
Small bug report.
For a few versions now, the "openurl" action when called by an "ondown" causes a black screen when you return to the virtual visit tab.
Do you have (small/isolated) sample project to demonstrate the issue?
Yes, here with 1.21.1 : https://v36.fr/visite-virtuel…ndown/tour.html
On left layer white box, it's "ondown" openurl and return to black screen
On right layer white box, it's "onclick" openurl with no problem
Same xml with 1.20.9 : https://v36.fr/visite-virtuel…_20_9/tour.html
Everything works
1.21 works fine for me!
I get an allow pop-up message though.
Tuur
I can relate to the black screen error. Tested with Firefox using uBlock origin. Maybe it's browser or browser plugin related?
Oh ?
I made a small record :
Same problem with Firefox/Edge without adblock
Does anyone else have this problem on a PC?
After opening the URL, then returning to the virtual tour tab, the 360° image turns black as soon as the mouse cursor returns to the browser.
Would you like another example or the xml code to reproduce this?
It's not very annoying, but I tend to use "ondown" instead of "onclick" for smartphones and tablets, it validates the action more easily and prevents nothing happening if the visitor "clicks and drags".
I have the same problem on my PC!
Okay, a bit strange...
The reason for the black screen is that view.hlookat and view.vlookat values become NaN for some reason...
When manually correctly them (e.g. setting to 0), all works normally again...
Will check that.
Btw - thanks for reporting and the example!
Okay, I have found the problem - it was related to the mouse event processing.
There was a try to get mouse coordinates from an event, but there were no mouse coordinates available in this case and that leads to invalid values. Additionally due the tab/windows switching because of the openurl() was no mouseup event and that also leads to some problems.
For the next release both problems are fixed now.
Btw - as workaround using capture="true" instead of capture="false" should work.
This way the event is blocked to reach the pano-control and so no invalid view values can happen.
And for mobile devices using onclick would be mandatory for this case anyway, an openurl call is not allowed on a touchdown event (=ondown) by the browsers.
Don’t have an account yet? Register yourself now and be a part of our community!