Skip to content

Commit fe052dc

Browse files
CopilotAxenoDev
andcommitted
Move TOOLTIP_DELAY to class-level constant
Co-authored-by: AxenoDev <93048526+AxenoDev@users.noreply.github.com>
1 parent f185690 commit fe052dc

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

gradlew

100644100755
File mode changed.

src/client/java/fr/libnaus/noctisui/client/component/input/TextInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public enum InputType
9191
private boolean showTooltip = false;
9292
private long tooltipShowTime = 0;
9393
private final float ANIMATION_SPEED = 0.08f;
94+
private static final float TOOLTIP_DELAY = 1000;
9495

9596
private float passwordIconHover = 0.0f;
9697
private float searchIconHover = 0.0f;
@@ -280,7 +281,6 @@ private void updateAnimations(double mouseX, double mouseY, float delta)
280281
showTooltip = true;
281282
}
282283

283-
float TOOLTIP_DELAY = 1000;
284284
if (System.currentTimeMillis() - tooltipShowTime > TOOLTIP_DELAY)
285285
tooltipAnimationProgress = MathUtils.lerp(tooltipAnimationProgress, 1.0f, ANIMATION_SPEED * 2.0f);
286286
}

0 commit comments

Comments
 (0)