Update UIWindow.cs
This commit is contained in:
@@ -66,7 +66,7 @@ namespace MuHua {
|
|||||||
if (!isDownMove) { return; }
|
if (!isDownMove) { return; }
|
||||||
Vector3 mousePosition = UITool.GetMousePosition(canvas);
|
Vector3 mousePosition = UITool.GetMousePosition(canvas);
|
||||||
Vector3 offset = mousePosition - pointerPosition;
|
Vector3 offset = mousePosition - pointerPosition;
|
||||||
Vector3 position = originalPosition + new Vector3(offset.x, -offset.y);
|
Vector3 position = originalPosition + new Vector3(offset.x, offset.y);
|
||||||
|
|
||||||
float width = canvas.resolvedStyle.width - Window.resolvedStyle.width;
|
float width = canvas.resolvedStyle.width - Window.resolvedStyle.width;
|
||||||
float height = canvas.resolvedStyle.height - Window.resolvedStyle.height;
|
float height = canvas.resolvedStyle.height - Window.resolvedStyle.height;
|
||||||
|
|||||||
Reference in New Issue
Block a user