Align AVA2 Windows behavior and improve mobile touch interactions
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user