Исправление работы анимации
This commit is contained in:
2
index.js
2
index.js
@@ -312,7 +312,6 @@ export const createTooltip = ($el, content, options) => {
|
||||
}
|
||||
|
||||
try {
|
||||
$el._tooltip._currentAnimation?.cancel();
|
||||
const animation = $el._tooltip.$tooltip.querySelector('.tooltip__root').animate(options.animation[0], {
|
||||
duration: immediately ? 0 : options.duration[0],
|
||||
easing: options.easing[0],
|
||||
@@ -345,7 +344,6 @@ export const createTooltip = ($el, content, options) => {
|
||||
document.body.removeEventListener('click', $el._tooltip.hideOnClickListener);
|
||||
|
||||
try {
|
||||
$el._tooltip._currentAnimation?.cancel();
|
||||
const animation = $el._tooltip.$tooltip.querySelector('.tooltip__root').animate(options.animation[1], {
|
||||
duration: immediately ? 0 : options.duration[1],
|
||||
easing: options.easing[1],
|
||||
|
||||
Reference in New Issue
Block a user