You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Click pencil icon on a text/markdown file
Place the mouse cursor over the document
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.
That's how MonacoEditor works, you can try it here: https://microsoft.github.io/monaco-editor/ , unless you can figure out a config option to control the scrolling behavior.
Looks like the flag is editor.scrollbar.alwaysConsumeMouseWheel: false.
wxiaoguang
added
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
and removed
issue/needs-feedback
For bugs, we need more details. For features, the feature must be described in more detail
labels
Dec 15, 2023
wxiaoguang
changed the title
Can't scroll page with cursor over file editor
Make MonacoEditor scroll with parent container when mouse hovers&scrolls
Dec 15, 2023
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.
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
The text was updated successfully, but these errors were encountered: