diff --git a/ohos_nweb/src/cef_delegate/nweb_event_handler.cc b/ohos_nweb/src/cef_delegate/nweb_event_handler.cc index 2fbb64578a953a4217b95693851cfcbb9b1b980c..c8dbf7c41203ee69195acc4d2a97e72406bd6b8e 100644 --- a/ohos_nweb/src/cef_delegate/nweb_event_handler.cc +++ b/ohos_nweb/src/cef_delegate/nweb_event_handler.cc @@ -219,10 +219,6 @@ void NWebEventHandler::SendMouseEvent(int x, mouseEvent.y = y; cef_mouse_button_type_t buttonType = static_cast( NWebInputDelegate::CefConverter("mousebutton", button)); - if (static_cast(buttonType) < 0) { - LOG(ERROR) << "invalid button type " << buttonType; - return; - } mouseEvent.modifiers = input_delegate_.GetModifiers(buttonType); if (browser_ && browser_->GetHost()) {