The native runtime for three.js: three.js, down to the metal. 45× smaller than Electron, on a Sony PS3, and path-traced at 60 fps on ray-tracing GPUs.
Rust electron-alternativegame-engineglobal-illuminationgraphicsjavascript-runtimemetalpath-tracingray-tracingreal-time-renderingrenderingrustthreejstypescriptvoxelvulkanwebgpuwgpu
Landing page: the reel keeps the reader's position only after a release (Bugbot)
Evan (Yifeng) Wang06ab84c22f04
diff --git a/site/index.html b/site/index.htmlindex eb23d29..1252c7e 100644--- a/site/index.html+++ b/site/index.html@@ -362,12 +362,10 @@pp.addEventListener("click", () => { playing = !playing; icon(); });$("#reel").addEventListener("pointerenter", () => (hover = true));$("#reel").addEventListener("pointerleave", () => (hover = false));- // The divider captures the pointer while dragging, so a drag can leave the reel: pause until it ends. Only a real- // tap or horizontal drag keeps the reader's position; a touch that turns into a vertical scroll (pointercancel)- // lets the sweep go on.- let downX = 0;- cmpEl.addEventListener("pointerdown", (e) => { dragging = true; downX = e.clientX; });- cmpEl.addEventListener("pointermove", (e) => { if (dragging && Math.abs(e.clientX - downX) > 4) touched = true; });+ // The divider captures the pointer while dragging, so a drag can leave the reel: pause until it ends. Only a press+ // that ends in a release (a tap or a drag) keeps the reader's position for the slide; a touch the browser turns+ // into a scroll ends in pointercancel instead, and the sweep goes on.+ cmpEl.addEventListener("pointerdown", () => { dragging = true; });addEventListener("pointerup", () => { if (dragging) touched = true; dragging = false; });addEventListener("pointercancel", () => (dragging = false));new IntersectionObserver(([e]) => (visible = e.isIntersecting), { threshold: 0.35 }).observe($("#reel"));