Code-server: Disable "scroll-bounce" on Safari

Created on 29 Aug 2019  路  6Comments  路  Source: cdr/code-server

Coder already works surprisingly well on the iPad, however it is really annoying to scroll in the editor, because Safari applies the "end-of-page" effect to the whole application and moves it upwards.

According to the Internet, this effect can be disabled with some CSS:

This would really improve the mobile experience on this device.

Thanks!

enhancement

All 6 comments

@sh0rez v2 should practically fix this, can you try this out?

Yes! I will try and let you know!

@sr229 I can confirm that this works now as expected! This is awesome!

@sr229 how is code-server preventing the tedious behaviour on safari?
Can you please link me the relevant css/jss in the repository?

I'd like to learn how to fix this in my full-screen web applications 馃檹馃徏

I'm not sure how code-server does it (not a developer of this project), but maybe my search results from above help you?

According to the Internet, this effect can be disabled with some CSS:

@damianobarbati I think these lines in /src/browser/pages/global.css prevent the over-scroll behaviour:

html,
body,
#root {
  height: 100%;
  width: 100%;
}

body {
  /* ... */
  overflow: hidden;
}

I also suggest reading this article, which helped me figure this problem out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oonqt picture oonqt  路  3Comments

RealSlimMahdi picture RealSlimMahdi  路  3Comments

tecosaur picture tecosaur  路  3Comments

lshamis picture lshamis  路  3Comments

broady picture broady  路  3Comments