Popup don't work on some openlayers.org site ( https://viglino.github.io/ol-ext/examples/popup/map.popup.html )

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
damjang
Fanatic
Fanatic
Posts: 113
Joined: 2012-01-14, 11:22

Popup don't work on some openlayers.org site ( https://viglino.github.io/ol-ext/examples/popup/map.popup.html )

Post by damjang » 2020-08-02, 23:18

The popup in this page don't work in Palemoon, but work in all other browsers I try:
https://viglino.github.io/ol-ext/exampl ... popup.html

Can someone help me to find the cause? There isn't any error in error console...

Thank you!

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2985
Joined: 2015-09-26, 04:51
Location: U.S.

Re: Popup don't work on some openlayers.org site ( https://viglino.github.io/ol-ext/examples/popup/map.popup.html )

Post by coffeebreak » 2020-08-03, 01:02

Confirmed here with PM 28.11 and Unstable-2020.07.26, default and new profiles (Win7 x86).
Clicking on the small, blue tiles on the map has no effect.

As reported, nothing in Error Console.

In Firefox 68, clicking on any tile produces an informational popup like this:
Firefox 68:
viglino-ff68.png
Edit:
This site uses v.2 of the polyfill.io script, which always causes problems.
However, neither blocking that script, nor adding a user agent override for polyfill.io made any difference at all (which normally, either one removes the problem), so either that's not the cause, or perhaps something has changed with how polyfill.io behaves.
You do not have the required permissions to view the files attached to this post.

User avatar
Gaming4JC
Hobby Astronomer
Hobby Astronomer
Posts: 22
Joined: 2018-09-08, 17:10

Re: Popup don't work on some openlayers.org site ( https://viglino.github.io/ol-ext/examples/popup/map.popup.html )

Post by Gaming4JC » 2020-08-03, 02:32

For what it's worth you can force a polyfill by appending &flags=always to the CDN url. It appears that it is not properly detecting the PM UA However, the problem here goes deeper than that from what I can tell.
It doesn't work in Webkit or pre-Servo Firefox either, so I filed a bug. (The library claims to even support old IE, so here's hoping.)

https://github.com/Viglino/ol-ext/issues/485

damjang
Fanatic
Fanatic
Posts: 113
Joined: 2012-01-14, 11:22

Re: Popup don't work on some openlayers.org site ( https://viglino.github.io/ol-ext/examples/popup/map.popup.html )

Post by damjang » 2020-08-03, 10:25

Thank you. Viglino already answers to the ticket: this is a openlayers v6.4.0 "problem":
Pointer events polyfill removed

Now that all major browsers support Pointer events natively, we removed the elm-pep dependency. If you are targeting older browsers that do not support Pointer events, you now need to include a pointer events polyfill (elm-pep or pepjs) in your application.
I try with both elm-pep and pepjs and work ok with both.

Thank you

User avatar
Gaming4JC
Hobby Astronomer
Hobby Astronomer
Posts: 22
Joined: 2018-09-08, 17:10

Re: Popup don't work on some openlayers.org site ( https://viglino.github.io/ol-ext/examples/popup/map.popup.html )

Post by Gaming4JC » 2020-08-03, 19:11

I'm not sure the degree of implementation in-tree, but we do have preliminary Pointer events functionality that works, it's just pref'd off.

Try it out: about:config ->

Code: Select all

dom.w3c_pointer_events.enabled;true
It works on the test page here.

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2985
Joined: 2015-09-26, 04:51
Location: U.S.

Re: Popup don't work on some openlayers.org site ( https://viglino.github.io/ol-ext/examples/popup/map.popup.html )

Post by coffeebreak » 2020-08-03, 22:12

Gaming4JC wrote:
2020-08-03, 19:11
Try it out:
Yes, works for me too on the page OP linked.

damjang
Fanatic
Fanatic
Posts: 113
Joined: 2012-01-14, 11:22

Re: Popup don't work on some openlayers.org site ( https://viglino.github.io/ol-ext/examples/popup/map.popup.html )

Post by damjang » 2020-08-04, 17:16

Yes, thank you. Work also for me. Good to know. But why is not enabled by default?