Sie sind nicht angemeldet.

1

Dienstag, 9. Januar 2018, 23:41

strange mailto: and tel: link behaviour

Dear Klaus,

so please check this out. After it loads just click once to hide the initial info display, and then click on the box in the upper right corner, it should open (slide out) a larger version of the plugin. There on the right side you can find an email address, which is at the moment an <a> tag with a href attribute filled out to be a mailto link.

After your last message I tried it out in different browsers, and surprisingly it works fine on Firefox (Quantum 57), but not in Chrome, Chromium or Opera. My OS is Windows 7 x64.

Also here's a youtube clip of what's happening in case the same doesn't happen for you.

And like I said, it didn't happen with version pr13, just with pr14.

2

Mittwoch, 10. Januar 2018, 00:19

Hi,

thanks - great bug-report - all information are there ;-)

The reason is this Chrome bug:
https://stackoverflow.com/questions/9740…-i-prevent-this

Chrome is wrongly sending an 'onbeforeunload' event when opening 'mailto:' links.

And in version 1.19-pr14 this event is used to manually free up all WebGL resources to avoid/reduce any browser-side WebGL memory leaks and problems...

I will try to find a workaround for this for the next release.
As manual workaround you could try the solution from the link above.

Best regards,
Klaus

3

Mittwoch, 10. Januar 2018, 02:18

Cheers, works fine now!

4

Freitag, 12. Januar 2018, 12:31

Hi,

this will be fixed in the release.
The 'beforeunload' event usage will be entirely removed, there are too many side effects because of browser-bugs.

Best regards,
Klaus

Tuur

Erleuchteter

Beiträge: 3 002

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

5

Dienstag, 23. Januar 2018, 13:42

@webseta,

can you provide working code?
I was not able to make it work with the given info on the stack overflow link.

Normally i would just call openurl(mailto:blabla@gmail.com,_self);

EDIT: I have a fix, thanks to JeromeBG
This line in your index.html head:

Quellcode

1
<iframe name="hidden-iframe" style="visibility:hidden;position:absolute;"></iframe>


This in your xml

Quellcode

1
2
3
4
5
6
7
<layer  balblabla  onclick="Mail();"

<action name="Mail" type="javascript" devices="html5">
<![CDATA[
window.open('mailto:mail@domain.com', 'hidden-iframe');
]]>
</action>


Thanks!
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Tuur« (23. Januar 2018, 16:43)


Ähnliche Themen