ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

zoom in ion-scroll not working in beta 2.0

Open yelhouti opened this issue 10 years ago • 28 comments

Short description of the problem:

zoom option in <ion-scroll> is not working in beta 2.0m also the scrollY is poorly working on iOS.

What behavior are you expecting?

I'm expecting the zoom to work when I add zoom="true" and maxZoom="2" to <ion-scroll>

Steps to reproduce:

  1. use the code provided below (modification of demo)
  2. pinch the screen

this the code from the demo modified

<ion-content>
    <ion-scroll maxZoom="2" zoom="true" scrollX="true" scrollY="true" style="width: 100%; height: 100%">
        <div class="map-div"></div>
    </ion-scroll>
</ion-content>

<style>
    .map-div {
        width: 2600px;
        height: 1400px;
        background: url('./map.jpeg') no-repeat;
    }
</style>

Ionic Version: 2.0

Browser & Operating System: iOS / Chrome

Run ionic info from terminal/cmd prompt:

Cordova CLI: 6.0.0
Ionic Version: 2.0.0-beta.1
Ionic CLI Version: 2.0.0-beta.17
Ionic App Lib Version: 2.0.0-beta.8
ios-deploy version: 1.8.5 
ios-sim version: 5.0.1 
OS: Mac OS X El Capitan
Node Version: v4.3.1
Xcode version: Xcode 7.2.1 Build version 7C1002 

yelhouti avatar Mar 03 '16 18:03 yelhouti

As @adamduren said, I decided to implement a custom component and after that I open sourced the code, you guys can use and submit your issues and PR's at https://github.com/leonardosalles/ionic2-zoom-area

thanks.

leonardosalles avatar Nov 07 '17 03:11 leonardosalles

Still, the issue is not resolved..

Any news on this?

praveenraji2i avatar Mar 13 '18 13:03 praveenraji2i

Ionic team are working in Ionic 4 release, think this issue will be not solved :rage2:

leonardosalles avatar Mar 14 '18 17:03 leonardosalles

Hello There, Here is my solution. Hope It's help another body. https://github.com/freeweed/ionic-panzoom

freeweed avatar Sep 17 '18 18:09 freeweed

Hello There, Here is my solution. Hope It's help another body. https://github.com/freeweed/ionic-panzoom

I stopped on jQuery...

leonardosalles avatar Sep 18 '18 14:09 leonardosalles

@leonardosalles I before jQuery I try zoom-area, And it's can't even build with --prod flag. sadly

freeweed avatar Sep 19 '18 08:09 freeweed

Thanks for the issue! We have moved the source code and issues for Ionic 3 into a separate repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there.

Thank you for using Ionic!

ionitron-bot[bot] avatar Nov 01 '18 19:11 ionitron-bot[bot]

Issue moved to: https://github.com/ionic-team/ionic-v3/issues/41

ionitron-bot[bot] avatar Nov 01 '18 19:11 ionitron-bot[bot]