Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation images disappear on mobile #54

Closed
bsouster opened this issue Sep 3, 2013 · 6 comments
Closed

Navigation images disappear on mobile #54

bsouster opened this issue Sep 3, 2013 · 6 comments

Comments

@bsouster
Copy link

bsouster commented Sep 3, 2013

The buttons are still there and are click-able but the images aren't, so they're effectively invisible.

I was using iPhone 4 to view it on this site:
http://shawnaguy.com/

Any idea why it would behave this way on this site?
Thanks a lot,

Note: the site only uses Swipebox in mobile. It's using Lightview on PCs.

@bsouster
Copy link
Author

bsouster commented Sep 4, 2013

In Firebug, I'm seeing that the SVG files are being called in but they aren't working. Replacing them with the PNG files worked. For whatever reason, the JavaScript to check SVG support isn't working.

@bsouster bsouster closed this as completed Sep 4, 2013
@Mainstwebguy
Copy link

Hey bsouster... I'm having the same issue. What did you have to change to use the .png version?

@bsouster
Copy link
Author

bsouster commented Sep 4, 2013

This query for SVG support seems to be returning true in the JS file even though the server isn't supporting it.

supportSVG = !!(window.SVGSVGElement),

....

if(supportSVG){
var bg = $('#swipebox-action #swipebox-close').css('background-image');
bg = bg.replace('png', 'svg');
$('#swipebox-action #swipebox-prev,#swipebox-action #swipebox-next,#swipebox-action #swipebox-close').css({
'background-image' : bg
});
}

To band-aid the issue, I commented out this bit:

// bg = bg.replace('png', 'svg');

@Mainstwebguy
Copy link

Thanks a bunch sir, i'll do this now.

@Mainstwebguy
Copy link

Sorry, what file are you refering to, a quick global search didn't turn up anything : /

@Mainstwebguy
Copy link

ok got it... DW search is... er... lacking :) thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants