Skip to content

Commit

Permalink
Prevent scrolling class to be applied on mouseup
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierfoucrier committed Sep 15, 2021
1 parent c9e72ba commit aa4d4d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/scripts/Smooth.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,11 @@ export default class extends Core {

releaseScrollBar(e) {
this.isDraggingScrollbar = false;
this.html.classList.add(this.scrollingClass);

if (this.isScrolling) {
this.html.classList.add(this.scrollingClass);
}

this.html.classList.remove(this.draggingClass);
}

Expand Down

0 comments on commit aa4d4d9

Please sign in to comment.