Remove leftover code in QWasmWindowClientArea
Switch cases for EventType::PointerEnter and EventType::PointerLeave are never reached. Change-Id: I02f31c2d7064db740f21b014c9e0f4735a7a1a91 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io>
This commit is contained in:
parent
77a4ff4036
commit
73c0c798a0
@ -35,11 +35,6 @@ ClientArea::ClientArea(QWasmWindow *window, QWasmScreen *screen, emscripten::val
|
||||
|
||||
bool ClientArea::processPointer(const PointerEvent &event)
|
||||
{
|
||||
const auto localScreenPoint =
|
||||
dom::mapPoint(event.target, m_screen->element(), event.localPoint);
|
||||
const auto pointInScreen = m_screen->mapFromLocal(localScreenPoint);
|
||||
|
||||
const QPointF pointInTargetWindowCoords = m_window->window()->mapFromGlobal(pointInScreen);
|
||||
|
||||
switch (event.type) {
|
||||
case EventType::PointerDown:
|
||||
@ -49,16 +44,6 @@ bool ClientArea::processPointer(const PointerEvent &event)
|
||||
case EventType::PointerUp:
|
||||
m_element.call<void>("releasePointerCapture", event.pointerId);
|
||||
break;
|
||||
case EventType::PointerEnter:
|
||||
if (event.isPrimary) {
|
||||
QWindowSystemInterface::handleEnterEvent(m_window->window(), pointInTargetWindowCoords,
|
||||
pointInScreen);
|
||||
}
|
||||
break;
|
||||
case EventType::PointerLeave:
|
||||
if (event.isPrimary)
|
||||
QWindowSystemInterface::handleLeaveEvent(m_window->window());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user