diff options
author | Mikolaj Boc <mikolaj.boc@qt.io> | 2022-07-14 16:06:40 +0200 |
---|---|---|
committer | Mikolaj Boc <mikolaj.boc@qt.io> | 2022-07-16 10:55:37 +0200 |
commit | a7e187cf1631e0f5434c09c4c398a7c4ef138593 (patch) | |
tree | 52fb88686040b2611bf09736fe7c4c352808e7ad /src/plugins | |
parent | e4ed618a665c1a38f3199d3299c832457d2bfecd (diff) |
Fix losing grip on dragged window on WASM
When a window is being dragged, we should not check for the target
window's resizability in QWasmCompositor::processMouse as:
1) the target window under the cursor might be different from the
dragged window when the pointer is moving quickly
2) we have checked that already when qualifying the window for dragging
when handling EMSCRIPTEN_EVENT_MOUSEDOWN at line 1022
Therefore, the condition for target window's resizability has been
removed.
Change-Id: Ib999d213f1e0a770fa76324fc7bf44c6d4ab806a
Reviewed-by: David Skoland <david.skoland@qt.io>
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/wasm/qwasmcompositor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wasm/qwasmcompositor.cpp b/src/plugins/platforms/wasm/qwasmcompositor.cpp index 920a8bf016..45e9eeeedd 100644 --- a/src/plugins/platforms/wasm/qwasmcompositor.cpp +++ b/src/plugins/platforms/wasm/qwasmcompositor.cpp @@ -1073,7 +1073,7 @@ bool QWasmCompositor::processMouse(int eventType, const EmscriptenMouseEvent *mo } } - if (m_windowBeingManipulated && isTargetWindowResizable) { + if (m_windowBeingManipulated) { if (m_resizeMode == QWasmCompositor::ResizeNone) { m_windowBeingManipulated->setPosition( m_windowBeingManipulated->position() + QPoint(mouseEvent->movementX, mouseEvent->movementY)); |