Skip to content

requestAnimation runs even when ninja-keys isn't loaded #41

@jwoertink

Description

@jwoertink

Related to #34

I have a page where I don't even load ninja-keys. It's a fairly static page to only display text, and never have user interaction on it.

However, since ninja keys is added in to my main.js build, this line still seems to get ran. I think that's mainly where that error is being thrown because it seems that since ninja-keys doesn't exist on this page, there's no inputRef to hook in to.

I think this should be fairly easy to duplicate. Add a page that includes the ninja-keys import, but don't actually add the <ninja-keys /> tag. Along with nothing else on the page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions