Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

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

$
0
0

@pliablepixels wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>