Skip to content

Commit 061c725

Browse files
committed
[JENKINS-75892] Set the default enter delay for tooltips to 500 msec
Tooltips should not pop up immediately, rather they should use a small delay. Otherwise, tooltips show up while the user still is moving the mouse. I set the delay to 500 msec, which seems to be a reasonable setting for Jenkins' views.
1 parent 78f3e0f commit 061c725

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/js/components/tooltips/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ function registerTooltip(element) {
3838

3939
const tooltip = element.getAttribute("tooltip");
4040
const htmlTooltip = element.getAttribute("data-html-tooltip");
41-
const delay = element.getAttribute("data-tooltip-delay") || 0;
41+
const defaultDelay = 500;
42+
const delay = element.getAttribute("data-tooltip-delay") || defaultDelay;
4243
let appendTo = document.body;
4344
if (element.hasAttribute("data-tooltip-append-to-parent")) {
4445
appendTo = "parent";

0 commit comments

Comments
 (0)