首页 文章

为什么Ionic默认对ion-content的反弹为假?

提问于
浏览
2

我无法找到关于为什么Ionic想要默认的离线内容为false的文档 .

我的一般理解是离子已经从本机(ios和android)控制了滚动处理 . 所以,我试图了解has-bounce配置选项的局限性 . 即,如果我将弹跳设置为真,那将会/可能会破坏什么?

While we recommend using the custom Scroll features in Ionic in most cases, sometimes (for performance reasons) only the browser’s native overflow scrolling will suffice, and so we’ve made it easy to toggle between the Ionic scroll implementation and overflow scrolling. http://ionicframework.com/docs/api/directive/ionContent/

旁注:似乎android有一个本机方法来处理这个事件? (https://developer.android.com/reference/android/widget/ScrollView.html#setOverScrollMode%28int%29) .

提前感谢任何见解!

1 回答

  • 2

    当您在视图的最顶部或底部滚动时,属性 has-bouncing 只会添加一个效果(请参见图像) . 它默认设置为Android中的 false 和iOS中的 true ,因为它是本机应用程序上的iOS默认配置,而不是Android中的默认配置 .

    bouncing effect

相关问题