Skip to content

Menu bar shakes when swiping pages in Safari #2119

Open
@evibhm

Description

@evibhm

Problem

Menu bar shakes when swiping pages in Safari

gif:
mdbook-swip-bug

Steps

  1. Find a relatively long page in the pages generated by mdbook and slide it.

Possible Solution(s)

The style

#menu-bar.sticky,
.js #menu-bar-hover-placeholder:hover + #menu-bar,
.js #menu-bar:hover,
.js.sidebar-visible #menu-bar {
    position: -webkit-sticky;
    position: sticky;
    top: 0 !important;
}

conflict with

#body-container {
    overflow-x: clip;
}

Notes

macOS Ventura 13.1
Safari Version 16.2

Version

mdbook v0.4.30

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-HTMLArea: HTML RenderingC-bugCategory: A bug, incorrect or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions