Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
GeoPal
Experienced
Topic Author
Posts: 227
Joined: 20 Dec 2007, 12:56

0.18 mobile version background lock

16 Aug 2016, 04:08

Hi Karl,
Today I tried the background plugin, which worked like a charm on the desktop version.
When I tried it on mobile, the background kept scrolling and it is not locked as in the desktop version. Any ideas?
Here is the sample:

demo

Thanks you!
Best, G
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: 0.18 mobile version background lock  Topic is solved

16 Aug 2016, 07:00

This is not a bug. The css code "background-attachment: fixed" simply does not work on most mobile devices, supposedly because it drains too much CPU (battery) on scrolling. See reference below, or you can also search Google.
http://caniuse.com/#feat=background-attachment

You can see the difference in the link below also, by comparing desktop vs mobile:
https://demo.photo.gallery/examples/plu ... tro-image/

On desktop, you will see the image remains fixed, while on mobile, the image will scroll with page. The fixed attachment should be considered a "progressive" enhancement. Having it fallback to "scroll" on mobile devices, is normally quite harmless to the effect itself.

We could implement a "hack" for this feature, but it's not worth the hassle, since ultimately it will achieve something mobile devices are attempting to avoid.
 
User avatar
GeoPal
Experienced
Topic Author
Posts: 227
Joined: 20 Dec 2007, 12:56

Re: 0.18 mobile version background lock

16 Aug 2016, 07:31

I see Karl, thank you, didn't know that about mobile browsers.
Best, G