Skip to content

Commit

Permalink
hotfix: fixed incorrect text displaying when mouse moving fast.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinaIceF committed Sep 23, 2024
1 parent d78d4ef commit 020443f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions siui/components/tooltip/tooltip.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def flash(self):
:return:
"""
# 刷新高亮层动画当前值和结束值,实现闪烁效果
self.highlight_mask.setColor("7FFFFFFF")
self.highlight_mask.setColor("#7FFFFFFF")
self.highlight_mask.setColorTo("#00FFFFFF")

def _refresh_position(self):
Expand All @@ -145,7 +145,8 @@ def resizeEvent(self, event):
self.highlight_mask.resize(w, h)

# 移动文本位置,阻止重设大小动画进行时奇怪的文字移动
self.text_label.move(0, h - self.text_label.height())
# self.text_label.move(0, h - self.text_label.height()) 2024.9.23 - 存在快速滑动鼠标时文字错位的情况
self.text_label.move(0, h - self.height() + 16)

def enterEvent(self, event):
super().enterEvent(event)
Expand Down

0 comments on commit 020443f

Please sign in to comment.