-
Notifications
You must be signed in to change notification settings - Fork 38.2k
Open
Labels
editor-sticky-scrollfeature-requestRequest for new features or functionalityRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesIssues identified as good community contribution opportunities
Milestone
Description
Currently sticky scroll always stick the first lines, which may make it less useful in some situations.
Consider the following case:
<!DOCTYPE html>
<html>
<body>
<script>
class SomeClass {
constructor() {
// Long & complicated code
// Long & complicated code
// Long & complicated code
}
}
</script>
</body>
</html>If we scroll to the comments with a max line count set to 3 for sticky scroll, <html>, <body> and <script> will stick around. However, we might not want to always stare at <html> whenever we write HTML, so it may be better to let <html> make room for inner code blocks.
| Current | Suggested alternative |
|---|---|
![]() |
![]() |
This problem also applies to other languages with a complicated program structure. Adding such an option can sometimes make it more efficient to work with these languages.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
editor-sticky-scrollfeature-requestRequest for new features or functionalityRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesIssues identified as good community contribution opportunities

