Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49103

Ion-scroll pinch zoom not working in android

$
0
0

@techsearch wrote:

I'm using ** ion-scroll** to allow zooming and scrolling of the image. I deployed this view to android. Scroll is working fine but i could not able to zoom the image in the app.

<ion-view view-title="zoom">
	<ion-header-bar class="bar-royal">
		<h1 class="title">zoom</h1>
	</ion-header-bar>

		 <ion-scroll class="scroll" zooming="true" max-zoom = "20" min-zoom= "1" direction= "xy" locking= "false">
			<div class="image" style="background-image: url(img/img.jpg)"> </div>

		</ion-scroll>


</ion-view>

CSS
.scroll{
width: 100%;
height: 100%;
margin: 10px;
}

.image{
	width: 90%;
	height: 90%;
	background-size: contain;
	background-position: center, center
	background-repeat: no-repeat;
}

As per the documentation and searching ion-scroll supports pinch zooming.

How can i solve this problem? Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49103

Trending Articles



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