Option to disable initial canvas focus #753
Closed
jackharrhy
started this conversation in
Ideas
Replies: 1 comment
-
Added |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be nice if it was possible to disable the default functionality of focusing on the initial canvas
kaboom/src/kaboom.ts
Line 6937 in 4c0445e
While this functionality makes sense for a full screen game, I'm planning on building a game that has non kaboom UI initially, but still has a kaboom canvas in the backdrop.
Currently I can get around this by creating a canvas manually, passing it in via the
canvas
property onkaboom
, and afterkaboom
, callingcanvas.blur()
to remove the focused added by kaboom, but it would be nice for the canvas to not even be focused to begin with.Beta Was this translation helpful? Give feedback.
All reactions