Skip to content

Commit 9a5a877

Browse files
committed
Fix GetPlatformViewBounds as Pixel coordinate (dotnet#488)
1 parent a49a7cd commit 9a5a877

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Core/src/Platform/Tizen/ViewExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ internal static Rect GetPlatformViewBounds(this NView platformView)
241241
if (platformView == null)
242242
return new Rect();
243243
var screenPostion = platformView.ScreenPosition;
244-
return new TRect(screenPostion.X, screenPostion.Y, platformView.SizeWidth, platformView.SizeHeight).ToDP();
244+
return new Rect(screenPostion.X, screenPostion.Y, platformView.SizeWidth, platformView.SizeHeight);
245245
}
246246

247247
internal static Matrix4x4 GetViewTransform(this IView view)

src/Core/src/WindowOverlay/WindowOverlay.Tizen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ protected override bool HitTest(Tizen.NUI.Touch touch)
9898
if (touch == null)
9999
return false;
100100

101-
var point = new Point(touch.GetLocalPosition(0).X.ToScaledDP(), touch.GetLocalPosition(0).Y.ToScaledDP());
101+
var point = new Point(touch.GetLocalPosition(0).X, touch.GetLocalPosition(0).Y);
102102

103103
var disableTouchEvent = false;
104104

0 commit comments

Comments
 (0)