three.js - Trackball Controls taking over the screen -


I own three. I am trying to add a basic trackball control to the JS scene, however, while doing so, it can control my entire screen, I can not right click on anything on the screen or click in a text box.

You have to do if you want to change that behavior, then your own changes will prevent default behavior. Are:

  function mouse down (event) {if (_this.enabled === incorrect) return; Event.preventDefault (); Event.stopPropagation ();    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -