mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Increase speed of tooltip slightly
This commit is contained in:
@@ -2,8 +2,9 @@ import { DirectiveOptions } from 'vue';
|
||||
import { DirectiveBinding } from 'vue/types/options';
|
||||
import { nanoid } from 'nanoid';
|
||||
|
||||
const handlers: Record<string, () => void> = {};
|
||||
const tooltipDelay = 300;
|
||||
|
||||
const handlers: Record<string, () => void> = {};
|
||||
|
||||
function bind(element: HTMLElement, binding: DirectiveBinding) {
|
||||
element.dataset.tooltip = nanoid();
|
||||
@@ -48,7 +49,7 @@ export function createEnterHandler(element: HTMLElement, binding: DirectiveBindi
|
||||
tooltipTimer = window.setTimeout(() => {
|
||||
animateIn(tooltip);
|
||||
updateTooltip(element, binding, tooltip);
|
||||
}, 600);
|
||||
}, tooltipDelay);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user