Fixed disappearance of header shadow on iOS

This commit is contained in:
squidfunk
2020-02-15 21:52:47 +01:00
parent a55554f90d
commit 694eaca889
13 changed files with 30 additions and 45 deletions

View File

@@ -77,7 +77,7 @@ export function mountTabs(
if (screen) {
return watchViewportFrom(el, { header$, viewport$ })
.pipe(
paintHideable(el, 20),
paintHideable(el, 10),
map(hidden => ({ hidden }))
)

View File

@@ -46,8 +46,8 @@ export interface ViewportOffset {
*/
export function getViewportOffset(): ViewportOffset {
return {
x: pageXOffset,
y: pageYOffset
x: Math.max(0, pageXOffset),
y: Math.max(0, pageYOffset)
}
}