Skip to content

Commit 22fa084

Browse files
committed
Fix slider tooltip showing when not hovering
1 parent 110b0bd commit 22fa084

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ plugins {
1616
val ciRun = System.getenv().containsKey("GITHUB_ACTIONS")
1717

1818
group = "dev.isxander"
19-
version = "1.4.0"
19+
version = "1.4.1"
2020

2121
if (ciRun)
2222
version = "$version-SNAPSHOT"

changelogs/1.4.1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fix slider tooltip showing when not hovering

src/main/java/dev/isxander/yacl/gui/controllers/slider/SliderControllerElement.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,10 @@ private int getThumbX() {
150150
private int getThumbWidth() {
151151
return 4;
152152
}
153+
154+
@Override
155+
public void postRender(MatrixStack matrices, int mouseX, int mouseY, float delta) {
156+
if (super.isMouseOver(mouseX, mouseY))
157+
super.postRender(matrices, mouseX, mouseY, delta);
158+
}
153159
}

0 commit comments

Comments
 (0)