Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

How to detect if container object is zoomed when using ion-scroll

$
0
0

Hi, I am using ion-scroll with zoom enabled like so:

<ion-scroll has-bouncing=false min-zoom=1 zooming="true"
                            direction="xy" style="width: 100%; ">

Inside ion-scroll, I have an image.

Is there a way to know if the image has been zoomed? The problem I am facing is I have also enabled on-swipe on the image. When a person swipes, he moves to the next image.

The problem is that when an image is zoomed, he is actually panning the image and on-swipe gets activated as most people 'flick' thus meeting the velocity defined for on-swipe. What I want to implement is "if the image is zoomed" disable on-swipe action. For this, I need to know if the image is zoomed but I don't see any way defined in http://ionicframework.com/docs/api/directive/ionScroll/

thanks


Viewing all articles
Browse latest Browse all 228595

Trending Articles