离子框架 - 在Android上没有平滑的弹性滚动效果 [英] ionic framework - no smooth springy scroll effect on Android

查看:131
本文介绍了离子框架 - 在Android上没有平滑的弹性滚动效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是当我在Android上部署我的 ionic 应用程序时,平滑弹性滚动效果(参见 .gif 以下)缺失。当我在我的开发环境中本地提供我的应用程序时,不会发生这种情况。

My problem is when i deploy my ionic app on android, that smooth springy scroll effect (see .gif below) is missing. This does not occur when i serve my app locally on my development environment.

我的开发环境:


  • 离子 1.3.20 1.0.0-rc.3 作为凉亭依赖

  • android sdk 22

  • ubuntu 14.10

  • java version 1.8.0_25

  • Ant版本 1.9.4

  • ionic 1.3.20 and 1.0.0-rc.3 as a bower dependency
  • android sdk 22
  • ubuntu 14.10
  • java version 1.8.0_25
  • Ant version 1.9.4

.gif 说明了我所指的平稳弹性滚动效果:

This .gif illustrates what i'm referring as smooth springy scroll effect:

推荐答案

您遇到这种情况是因为在iOS和本地浏览器上,此效果的默认设置是在Android上启用时默认设置为要停用。

You experiencing this because on iOS and Local-Browser the default setting for this effect is to be enabled while on Android the default is to be disabled.

要更改,请添加 has-bouncing =tru e属性为 ion-content 标记

例如:

<ion-content has-bouncing="true">
  ...

这篇关于离子框架 - 在Android上没有平滑的弹性滚动效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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