PhoneGap中文网

标题: 在安卓环境下 ion-scroll 的zooming 不能用 [打印本页]

作者: 老贝V5    时间: 2016-4-25 16:09
标题: 在安卓环境下 ion-scroll 的zooming 不能用
我想实现图片缩放的效果,在IOS环境下可以缩小和放大,但是在安卓下就无法实现,模拟器和真机都试过
<ion-scroll zooming="true" min-zoom="0.1" direction="xy" delegate-handle="map" style="width: 100%;height: 100%;">
  <div style="background: url({{mapInfo.url}}); width: {{mapInfo.width}}; height: {{mapInfo.height}};">
    <div ng-if="mapInfo.showLocation" style="position: absolute;left: {{mapInfo.location.left}};top:{{mapInfo.location.top}} ;-webkit-transform: scale(0.2);-webkit-animation: jump 1s linear normal infinite;">
      <img src="img/map/here.png">
    </div>
  </div>
</ion-scroll>这是我的实现代码。 另外安卓版本集成Crosswalk了,不知道错在哪里,求大神帮帮忙


作者: ionicwang    时间: 2016-4-25 20:11
不集成Crosswalk试试

http://www.ionic.wang/course-index.html#cours  

26讲看看  记得树根讲过
作者: 老贝V5    时间: 2016-4-26 10:39
ionicwang 发表于 2016-4-25 20:11
不集成Crosswalk试试

http://www.ionic.wang/course-index.html#cours  

问题解决了  在IONIC 1.2.x后的版本里面好像都有点问题,解决方法是在ion-scroll中增加overflow-scroll = false




欢迎光临 PhoneGap中文网 (http://bbs.phonegap100.com/) Powered by Discuz! X3.2