mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-28 08:42:47 -04:00
Fixed disappearance of header shadow on iOS
This commit is contained in:
@@ -77,7 +77,7 @@ export function mountTabs(
|
||||
if (screen) {
|
||||
return watchViewportFrom(el, { header$, viewport$ })
|
||||
.pipe(
|
||||
paintHideable(el, 20),
|
||||
paintHideable(el, 10),
|
||||
map(hidden => ({ hidden }))
|
||||
)
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user