cyclosproject / cyclos4-wordpress-plugin

2 stars 0 forks source link

Fix map in iPhone #34

Open sandrab opened 3 years ago

sandrab commented 3 years ago

The user map does not work on iPhone, the loader keeps loading. The console shows an error: TypeError: undefined is not an object (evaluating 'screenfull.raw.fullscreenchange').

We use the leaflet plugin leaflet.fullscreen to make the fullscreen button. This uses the screenfull project. As explained there, the Full Screen API is not supported on iPhone.

As a 'solution' we will just leave the fullscreen button out on devices where the Full Screen API is not supported.

sandrab commented 3 years ago

Apparentely, the attempt in 1b1d03f to leave the button out, does not solve the problem. The console error still appears on the iPhone.

sandrab commented 3 years ago

Removed the fullscreen button in 5db4fea for now, waiting for a way to resolve this problem on iPhone.