Skip to content

Commit

Permalink
Fix chapter scroller issue on Chrome 126 on OS X
Browse files Browse the repository at this point in the history
On some machines setting `scrollLeft` does not work on containers with
no pointer-events. Switching overflow to scroll works around the
problem. Use CSS to prevent scroll bars showing up.

REDMINE-20780
  • Loading branch information
tf committed Jul 10, 2024
1 parent 274ba35 commit 8d353aa
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

@media screen and breakpoint-md {
.scroller {
overflow: hidden;
overflow: scroll;
scroll-behavior: smooth;
scrollbar-width: none;

/* Prevent clipping chapter tooltips vertically. */
padding-bottom: 90vh;
Expand All @@ -14,6 +15,10 @@
width: 58%;
}

.scroller::-webkit-scrollbar {
display: none;
}

.scroller > * {
pointer-events: auto;
}
Expand Down

0 comments on commit 8d353aa

Please sign in to comment.