This message was deleted.
# compose-web
s
This message was deleted.
a
Okay, so this is the source-code:
Copy code
window.requestAnimationFrame {
            val duration = it.toDuration(DurationUnit.MILLISECONDS)
            val result = onFrame(duration.inWholeNanoseconds)
            continuation.resume(result)
        }
It is unclear to me if
toDuration
rounds it to the nearest millisecond.