Jump to content

Disabling Arrow Keys for FreeCamera


Recommended Posts

Sorry for the delayed feedback, but setting this to true or false did not do anything to stop this. 


Looked at FreeCamera.ts, and this has something to do with preventDefault.  I have been getting a Firefox message for all any scene I load that says:

  "Use of getPreventDefault() is deprecated.  Use defaultPrevented instead.". 


Never knew what it was.

Link to comment
Share on other sites

  • 2 weeks later...

Well, there is no law that you have to attach the scene to a camera:

scene.activeCamera.attachControl(canvas, false | true);

Adding a true second argument means that both the cursor moves in the text field AND the mesh moves.  I want the mesh to stay where it is.  Answer is not to attach in the first place.  Thought I would point this out, as people might think you have to do this, but it is just optional.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...