diff --git a/ohos_nweb/src/cef_delegate/nweb_event_handler.cc b/ohos_nweb/src/cef_delegate/nweb_event_handler.cc index 80d9fdbffc4778048a4886947d0ff0a41fe6e66e..2eea2196306d692b5207ed7f472fa4b333b3fb16 100644 --- a/ohos_nweb/src/cef_delegate/nweb_event_handler.cc +++ b/ohos_nweb/src/cef_delegate/nweb_event_handler.cc @@ -342,6 +342,8 @@ void NWebEventHandler::WebSendMouseEvent(const std::shared_ptrGetX() / ratio; mouseInfo.y = mouseEvent->GetY() / ratio; + mouseInfo.raw_x = mouseEvent->GetRawX(); + mouseInfo.raw_y = mouseEvent->GetRawY(); #ifdef OHOS_EX_TOPCONTROLS if (browser_ && browser_->GetHost()) { mouseInfo.y -= browser_->GetHost()->GetShrinkViewportHeight();