Align AVA2 Windows behavior and improve mobile touch interactions

This commit is contained in:
shen
2026-10-13 23:46:26 -07:00
parent 31c5b3dd9b
commit b3808d8d0c
106 changed files with 5162 additions and 637 deletions
+5 -2
View File
@@ -369,8 +369,11 @@ class CMouseController(object):
if True == self.isAttached():
if 0 != self.AttachedIconHandle:
grpImage.SetDiffuseColor(self.AttachedIconHandle, 1.0, 1.0, 1.0, 0.5)
grpImage.SetPosition(self.AttachedIconHandle, self.x - self.AttachedIconHalfWidth, self.y - self.AttachedIconHalfHeight)
self.countNumberLine.SetPosition(self.x, self.y - self.AttachedIconHalfHeight - 3)
import touch
lift = min(48, wndMgr.GetScreenHeight() * 0.06) if touch.IsEnabled() else 0
icon_y = max(touch.GetSafeArea()[1], self.y - self.AttachedIconHalfHeight - lift) if lift else self.y - self.AttachedIconHalfHeight
grpImage.SetPosition(self.AttachedIconHandle, self.x - self.AttachedIconHalfWidth, icon_y)
self.countNumberLine.SetPosition(self.x, icon_y - 3)
if self.IsSoftwareCursor:
if 0 != self.curCursorImage: