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

horizonScroll inside iframe, on mobile #6

Open
agerber23 opened this issue Mar 2, 2016 · 0 comments
Open

horizonScroll inside iframe, on mobile #6

agerber23 opened this issue Mar 2, 2016 · 0 comments

Comments

@agerber23
Copy link
Contributor

Hey, I'm working on a site, that uses this plugin inside an iframe. To test it on mobile, I just used the demo code to see how it would render.

All is well, except on safari mobile, it's completely unsable. i.e. it won't let me scroll / swipe at all. Do you have any tips on making it work within an iframe on mobile safari. @trgraglia

Sample code:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Title of the document</title>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no, shrink-to-fit=no">
<style>
html {
    height: 100%;
}
body {
    margin: 0px;
    height: 100%;
}
</style>
</head>

<body>

<iframe id="iframe" src="http://trgraglia.github.io/jquery.horizonScroll.js/demo/index.html" height="90%" width="100%" frameBorder="0"></iframe>

</body>
</html>

Anyone have any experience with iframes / this plugin?

@agerber23 agerber23 changed the title iframe advice iframe on mobile, please advise Mar 2, 2016
@agerber23 agerber23 changed the title iframe on mobile, please advise horizonScroll inside iframe, on mobile Mar 2, 2016
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

1 participant