Skip to content

Commit

Permalink
fix: update comment in dom tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
xile611 committed Dec 11, 2024
1 parent 921d526 commit 85807e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ export class DomTooltipHandler extends BaseTooltipHandler {
this._cacheCustomTooltipPosition = position;
} else {
if (!currentVisible) {
// 当从隐藏切换到
this._rootDom.style.transitionDuration = `0ms`;
// 当从隐藏切换到显示的时候,需要先设置一次 transition 为 0ms,防止出现从一个非常远的初始位置进行动画
this._rootDom.style.transitionDuration = '0ms';
} else {
this._rootDom.style.transitionDuration = this._domStyle.panel.transitionDuration ?? 'initial';
}
Expand Down

0 comments on commit 85807e2

Please sign in to comment.