diff options
author | isXander <xandersmith2008@gmail.com> | 2023-02-08 20:02:39 +0000 |
---|---|---|
committer | isXander <xandersmith2008@gmail.com> | 2023-02-08 20:02:39 +0000 |
commit | 6c08419a6fcd683bab987699f2e73c1ce912980d (patch) | |
tree | d12412fe23c2bc0f90897abbfe223727ff10b455 | |
parent | 4422d7d648d2968060e3ecdbd34b01b7796ab18f (diff) | |
download | YetAnotherConfigLib-6c08419a6fcd683bab987699f2e73c1ce912980d.tar.gz YetAnotherConfigLib-6c08419a6fcd683bab987699f2e73c1ce912980d.tar.bz2 YetAnotherConfigLib-6c08419a6fcd683bab987699f2e73c1ce912980d.zip |
fix sliders not showing tooltip when focused
-rw-r--r-- | src/client/java/dev/isxander/yacl/gui/controllers/slider/SliderControllerElement.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/java/dev/isxander/yacl/gui/controllers/slider/SliderControllerElement.java b/src/client/java/dev/isxander/yacl/gui/controllers/slider/SliderControllerElement.java index 2d6f1ea..d00f3d7 100644 --- a/src/client/java/dev/isxander/yacl/gui/controllers/slider/SliderControllerElement.java +++ b/src/client/java/dev/isxander/yacl/gui/controllers/slider/SliderControllerElement.java @@ -158,7 +158,7 @@ public class SliderControllerElement extends ControllerWidget<ISliderController< @Override public void postRender(PoseStack matrices, int mouseX, int mouseY, float delta) { - if (super.isMouseOver(mouseX, mouseY)) + if (super.isMouseOver(mouseX, mouseY) || focused) super.postRender(matrices, mouseX, mouseY, delta); } } |