Clear the timer target time when stopping a timer on WASM
Not clearing the target time makes the subsequently created timers not get their time ticks, as no actual timeout will be registered as the dispatcher wrongly assumes there will be a tick fired, which there isn't. Since there are no updates, the WASM compositor enters an infinite window update loop where it requests an update on a window, and the window requests an update on it, getting the update request back due to an animation running forever. Pick-to: 6.4 6.4.0 Fixes: QTBUG-105347 Fixes: QTBUG-102004 Fixes: QTBUG-104518 Fixes: QTBUG-106153 Change-Id: I14b8dd08df81852e28e8527545c8530e0656990d Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>bb10
parent
6abaff810a
commit
df4be70740
|
|
@ -518,6 +518,7 @@ void QEventDispatcherWasm::updateNativeTimer()
|
|||
if (m_timerId > 0) {
|
||||
emscripten_clear_timeout(m_timerId);
|
||||
m_timerId = 0;
|
||||
m_timerTargetTime = 0;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue