LoginSignup
14
11

More than 5 years have passed since last update.

スマホの画面の上下端でビヨーンってスクロールしちゃうのは嫌だ

Posted at

すぐに忘れるだろうから自分用のメモ。

Cordovaを使ってスマホネイティブっぽいアプリを開発すると、表示される画面が固定されていて欲しいのに、上下にビヨーンってスクロールしてしまいカッコ悪い。このビヨーンってのがそもそもなんと言うのかわからなくて、google先生になかなか答えを教えてもらえなかった。

答えはここにありました:
https://cordova.apache.org/docs/en/latest/config_ref/index.html

  • DisallowOverscroll (boolean, defaults to false): set to true if you don't want the interface to display any feedback when users scroll past the beginning or end of content.
<preference name="DisallowOverscroll" value="true"/>

Applies to Android and iOS. On iOS, overscroll gestures cause content to bounce back to its original position. On Android, they produce a more subtle glowing effect along the top or bottom edge of the content.

ありがとうございます。

ではまたね。

14
11
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
11