禁用内容弹跳滚动 [英] Disable content bouncing scroll

查看:58
本文介绍了禁用内容弹跳滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的hybrid应用中,可以拖动屏幕来刷新列表.在Android中,它可以正常工作,但是在iOS上,当我向下拖动时,有时会使它与滚动页面混淆,因此具有溢出/弹跳效果.

In my hybrid app there's a possibility to drag the screen to refresh the list. In Android this works fine, but on iOS when I'm dragging down it sometimes confuses it with scrolling the page so it has that overflow/bouncing effect.

ionic中,有一个属性可用于禁用此属性,但是它不起作用:

In ionic there's an attribute you can use to disable this, but it's not working:

<ion-content id="questions" has-bouncing="false">

config.xml已经具有以下代码行:

config.xml already has these lines of code:

  <preference name="webviewbounce" value="false"/>
  <preference name="UIWebViewBounce" value="false"/>
  <preference name="DisallowOverscroll" value="true"/>

推荐答案

您将需要将overflow-scroll设置为false,如:

You will need to set overflow-scroll to false like :

overflow-scroll="false"

Ionic 1.3

这篇关于禁用内容弹跳滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆