diff options
Diffstat (limited to 'tests/manual/wasm/rasterwindow/rasterwindow.cpp')
-rw-r--r-- | tests/manual/wasm/rasterwindow/rasterwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/manual/wasm/rasterwindow/rasterwindow.cpp b/tests/manual/wasm/rasterwindow/rasterwindow.cpp index bc56887354..8fd036c274 100644 --- a/tests/manual/wasm/rasterwindow/rasterwindow.cpp +++ b/tests/manual/wasm/rasterwindow/rasterwindow.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2021 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include "rasterwindow.h" RasterWindow::RasterWindow() @@ -175,6 +175,7 @@ void RasterWindow::wheelEvent(QWheelEvent * ev) qDebug() << __PRETTY_FUNCTION__; QRasterWindow::wheelEvent(ev); incrementEventCount(); + m_offset += ev->pixelDelta(); } void RasterWindow::incrementEventCount() |