_Window* pWindow = null;
pWindow = pControlManager->GetTopVisibleWindowAt(Point(x, y));
SysTryReturn(NID_UI, pWindow, null, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
- Tizen::Graphics::Rectangle winBounds = pWindow->GetBounds();
pRootControlElement = dynamic_cast <_ControlVisualElement*>(pWindow->GetVisualElement());
}
SysTryReturn(NID_UI, pRootControlElement, null, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
_RootVisualElement* pRootVisualElement = pRootControlElement->GetRoot();
+
+ _NativeLayer* pLayer = pRootVisualElement->GetNativeLayer();
+ FloatRectangle layerBounds = pLayer->GetBounds();
+
+ ptf.x = static_cast<float>(x - layerBounds.x);
+ ptf.y = static_cast<float>(y - layerBounds.y);
+
_ControlVisualElement* pControlVisualElement = null;
if(pRootVisualElement)
{