Skip to content

Commit

Permalink
fix scrolling by click and dragging the left mouse button?
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceWalkerRS committed Dec 23, 2023
1 parent c14de1c commit e672e28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public void handleMouse() {
int scrollbarMinX = this.getScrollbarPosition();
int scrollbarMaxX = scrollbarMinX + 6;
if (mouseX > this.minX && mouseX < this.maxX && mouseY > this.minY && mouseY < this.maxY) {
if (Mouse.isButtonDown(0) && this.isScrolling()) {
if (Mouse.isButtonDown(0)) {
if (this.mouseYStart == -1.0f) {
int mouseClickMode = 1;
if (mouseY >= this.minY && mouseY <= this.maxY) {
Expand Down

0 comments on commit e672e28

Please sign in to comment.