Closed nhrones closed 1 year ago
I found what I needed! The loop
and wait
options of the mainLoop
call, unblock events.
I also researched sk-canvas and sk-surface, and I better understand the relationship of the window and canvas now.
Thanks again! Keep up the good work.
Btw you need to use global addEventListener function instead of on window or canvas.
Yes! discovered that. Thanks!
Is there a way to get mouse events in a canvasWindow? (the cube example)? I've tried addEventListener on the
win.window
object and thewin.canvas
object in thecube
example with no luck. What am I missing?Also, resizing the canvas seems to have no effect? A
clearRect()
orfillRect()
always paints the whole window, not just the canvas area? Although other paths rendered are actually clipped to the new canvas size>