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

Panning does not work on mobile chrome #2

Closed
jokerttu opened this issue Mar 4, 2016 · 1 comment
Closed

Panning does not work on mobile chrome #2

jokerttu opened this issue Mar 4, 2016 · 1 comment

Comments

@jokerttu
Copy link

jokerttu commented Mar 4, 2016

Mobile mediaquery hides the viewFinder. Move logic is under viewFinder code and it uses viewFinder height and width for calculations. When viewFinder is hidden browser gives 0 for width and height -> panning won't work.
Logic need to be changed so that the panning is done on image space and viewFinder is updated (if visible)

For fast fix I just changed the mediaquery so that viewFinder is always visible but just drawn outside of the view.
@media screen and (max-width: 767px) {
.iv-snap-view {
top: -9999px;
}
}

@s-yadav s-yadav closed this as completed in 8457210 Mar 8, 2016
@s-yadav
Copy link
Owner

s-yadav commented Mar 8, 2016

Thanks @jokerttu

Needed a css change only, updated to

.iv-snap-view {
   z-index : -1;
   visibility:hidden;
}

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