Skip to content

Make MonacoEditor scroll with parent container when mouse hovers&scrolls #28479

@JVimes

Description

@JVimes

Description

When editing a file with the mouse cursor over the editor, the mouse wheel only affects the editor and not the web page. I'd expect it to affect the web page once the editor is scrolled to its top/bottom.

  1. Click pencil icon on a text/markdown file
  2. Place the mouse cursor over the document
  3. Try to scroll to the bottom of the webpage using the mouse wheel

Actual: It only scrolls the document pane.
Expected: Once document is scrolled to its bottom, the web page scrolls.

Gitea Version

1.21.1

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

It happens on https://try.gitea.io/

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions