diff --git a/service/window_manager/src/input_windows_manager.cpp b/service/window_manager/src/input_windows_manager.cpp index 7052270cd51d3ccd5459dd9272a0e55e90f9b8e2..064f5b09c6ec29080dac43fb9718b7ac2360e226 100644 --- a/service/window_manager/src/input_windows_manager.cpp +++ b/service/window_manager/src/input_windows_manager.cpp @@ -1602,8 +1602,9 @@ void InputWindowsManager::NotifyPointerToWindow() return; } if ((lastPointerEvent_->GetSourceType() == PointerEvent::SOURCE_TYPE_MOUSE) && - (lastPointerEvent_->GetButtonId() >= 0)) { - MMI_HILOGD("No need to respond to new interface layouts"); + (!lastPointerEvent_->GetPressedButtons().empty())) { + MMI_HILOGD("No need to respond to new interface layouts, btnCounts:%{public}d", + static_cast(lastPointerEvent_->GetPressedButtons().size())); return; } windowInfo = GetWindowInfo(lastLogicX_, lastLogicY_);