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

bug: ion-scroll zoom does not work. #5790

Closed
dowsanjack opened this issue Mar 10, 2016 · 10 comments
Closed

bug: ion-scroll zoom does not work. #5790

dowsanjack opened this issue Mar 10, 2016 · 10 comments

Comments

@dowsanjack
Copy link

Type: bug

Ionic Version: 1.x

Platform: android 5.0 webview

On pinch to zoom the scroll container should zoom in, but that does not happen.

This was working on 1.2.1(http://codepen.io/ankitjain11/pen/LNVVdL/), but not working on 1.2.4(http://codepen.io/ankitjain11/pen/QNbbxX)

Please let me know, if, my implementation is wrong, or, if more information is required.

Thanks,

@jgw96
Copy link
Contributor

jgw96 commented Mar 11, 2016

This bug also seems to happen on ionic v2: #5707

@orochies
Copy link

I have the same problem, no zooming work.

android version: 4.1 and above.
Ionic Version: 1.2.4

<ion-content class="has-header">
        <ion-scroll zooming="true" style="width: 100%; height: 100%">
            <img ng-src="{{image.src}}" />
        </ion-scroll>
    </ion-content>

Thanks...

@IamAdamJowett
Copy link

Seeing the same thing here on Android also, here are my details in case they help:

Android: 5.0
Ionic: 1.2.4
Device: Samsung S5

The below code is within an ion-slide-box in case this has anything to do with it.

Was working in earlier 1.2.* versions.

<ion-scroll min-zoom="1" zooming="true">
  <div class="image-holder more" ng-if="activeSlide === $index">
    <div class="image" ng-class="image-{{$index}}" ng-show="scrub.pos == $index" ng-repeat="img in episodeImages[$index] track by $index" style="background-image: url({{img}})"></div>
  </div>
</ion-scroll>

@Misikir
Copy link

Misikir commented Mar 28, 2016

I got the same problem with
Ionic, v1.2.4
android 4.1.1

 <ion-scroll zooming="true" direction="xy" style="width: 500px; height: 500px">
    <div style="width: 5000px; height: 5000px; background: url('img/eu.jpg') repeat"></div>
  </ion-scroll>

@jgw96 jgw96 added the bug label Mar 28, 2016
@qwerdy
Copy link

qwerdy commented Mar 29, 2016

Had same problem, finally found the solution here

It can be fixed by adding overflow-scroll="false" into ion-scroll tag.

Fixed example: http://codepen.io/anon/pen/grxMvQ

@jgw96
Copy link
Contributor

jgw96 commented Mar 29, 2016

@qwerdy Im glad a solution was found! Thanks everyone! If this solution does not fix your issue feel free to comment!

@jgw96 jgw96 closed this as completed Mar 29, 2016
@corv89
Copy link

corv89 commented Aug 15, 2016

Thank you!

I think this should be added to the api docs on ion-scroll.

http://ionicframework.com/docs/api/directive/ionScroll/

@jacquesdev
Copy link

@jgw96 - could you please do what @corv89 suggested? It would help loads of people.

@antonioolf
Copy link

@qwerdy's solution worked fine for me!
However note that the zoom will not work if you are testing in the browser with Shift + "mobile scroll".
Instead test the solution in your device to see it working.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 3, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants