fix(ClickGui): correct slider button hovering

This commit is contained in:
cattyn
2025-11-15 04:04:33 +03:00
parent 34587f6955
commit 28aa1908d4
@@ -48,7 +48,7 @@ public class Slider
if (!component.drag) continue;
return false;
}
return (float) mouseX >= this.getX() && (float) mouseX <= this.getX() + (float) this.getWidth() + 8.0f && (float) mouseY >= this.getY() && (float) mouseY <= this.getY() + (float) this.height;
return (float) mouseX >= this.getX() && (float) mouseX <= this.getX() + (float) this.getWidth() + 8.0f && (float) mouseY >= this.getY() && (float) mouseY < this.getY() + (float) this.height;
}
@Override