Open egorikftp opened 2 months ago
Actually, I would argue an overscroll animation is the expected behavior :)
@Nek-12 ive never seen a web with the ios-like overscroll shown in the video
I always wanted web apps to have this feature. There are extensions that do this, there are websites that have this on purpose, there are apps that promise the same things. In fact, I think overscroll should be configurable
it works for me: (from https://github.com/nevrozza/PansionApp/blob/main/composeApp/src/wasmJsMain/resources/styles.css) `
width: 100%;
height: 100%;
}
html, body {
background-color: #2b2d30;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
display: flex;
overflow: hidden;
justify-content: center;
align-items: center;
}
`
Describe the bug I'm trying to migrate from CanvasBasedWindow to ComposeViewport we observe stretch animation (like overscroll on Android)
Affected platforms
Versions
To Reproduce
<canvas id="youID"></canvas>
with<div id="youID"></div>
Expected behavior No animation
Screenshots CanvasBasedWindow
https://github.com/JetBrains/compose-multiplatform/assets/16294951/e89a4aef-5fa0-45fa-ad17-c4a7881e59a3
ComposeViewport
https://github.com/JetBrains/compose-multiplatform/assets/16294951/de2b8afe-93cd-4b78-926f-8b8695400e92
Additional context Can be easily reproduced in this branch https://github.com/ComposeGears/Tiamat/tree/feature/wasm
and this git patch overscroll.patch