From 495efba0511a19161512817d20b6a95635c2d15f Mon Sep 17 00:00:00 2001 From: wangtao Date: Fri, 6 Dec 2024 14:42:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=BC=A0=E6=A0=87=E9=94=81?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E9=9A=90=E8=97=8F=E5=85=89=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangtao --- ohos_nweb/src/cef_delegate/nweb_event_handler.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ohos_nweb/src/cef_delegate/nweb_event_handler.cc b/ohos_nweb/src/cef_delegate/nweb_event_handler.cc index 80d9fdbffc..2eea219630 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(); -- Gitee