gg: add text rendering, keyboard event handling for JS and other fixes (#12932)

This commit is contained in:
playX 2021-12-22 13:26:52 +03:00 committed by GitHub
parent 6eb44f472a
commit 2b9f993574
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 596 additions and 25 deletions

View file

@ -14,7 +14,7 @@ module time
pub fn sys_mono_now() u64 {
$if js_browser {
mut res := u64(0)
#res = new u64(window.performance.now() * 1000000)
#res = new u64(Math.floor(window.performance.now() * 1000000))
return res
} $else $if js_node {