Skip to content

Commit

Permalink
force default cursor while scrolling the bracket
Browse files Browse the repository at this point in the history
  • Loading branch information
sbachinin committed Aug 27, 2024
1 parent 634ff95 commit 05d86da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 2 additions & 0 deletions lib/scroll/scrolla.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ export const create_scrolla = (html_shell, get_option) => {
html_shell.the_root_element.style.setProperty('--scroll-transition-duration', `${SCROLL_TRANSITION_DURATION / 1000}s`)

const handle_native_scroll = () => {
matches_positioner.classList.add('is-scrolling')
scrollbar_functions.update_position(html_shell, get_option, scroller.scrollTop)
debounced_end_scrolling(matches_positioner)
}

const forget_window_onscroll = disable_matches_scroll_on_window_scroll(scroller, get_option)
Expand Down
13 changes: 9 additions & 4 deletions lib/styles/rounds.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
}
}


.matches-positioner.is-scrolling * {
cursor: auto !important;
}

.bronze-round-wrapper {
display: flex;
Expand Down Expand Up @@ -64,17 +66,19 @@

.match-wrapper {
padding-left: calc(var(--matchHorMargin) * 0.3);

&.even {
align-self: end;
padding-top: var(--matchMinVerticalGap);
padding-bottom: var(--matchMinVerticalGap);
}

&.odd {
align-self: start;
padding-top: calc(var(--matchMinVerticalGap) + var(--matchFontSize) * 1.5);
padding-bottom: calc(var(--matchMinVerticalGap) + var(--matchFontSize) * 1.5);
}

&.odd .line-wrapper.upper,
&.even .line-wrapper.lower {
box-shadow: calc(var(--connectionLinesWidth) * -1) 0px 0px 0px;
Expand Down Expand Up @@ -233,7 +237,7 @@
}
}

.matches-positioner > .round-wrapper:last-of-type .line-wrapper {
.matches-positioner>.round-wrapper:last-of-type .line-wrapper {
/* do not show right vertical line for last round */
color: transparent;
}
Expand All @@ -254,7 +258,8 @@
/* defined at this depth because on upper levels color property is used for box-shadow tricks */
color: var(--matchTextColor);

&.empty-side, &:not([contestant-id]) {
&.empty-side,
&:not([contestant-id]) {
pointer-events: none;
}

Expand Down

0 comments on commit 05d86da

Please # to comment.