3DStreet / 3dstreet

🚲🚢🚌 Web-based 3D visualization of streets using A-Frame
https://3dstreet.app
Other
249 stars 30 forks source link

when using transform controls and releasing the click, sometimes another object is selected #645

Open kfarr opened 2 weeks ago

kfarr commented 2 weeks ago

might be caused near here: https://github.com/3DStreet/3dstreet/blob/main/src/editor/lib/raycaster.js#L75

  function handleClick(evt) {
    // Check to make sure not dragging.
    const DRAG_THRESHOLD = 0.03;
    if (onDownPosition.distanceTo(onUpPosition) >= DRAG_THRESHOLD) {
      return;
    }
    inspector.selectEntity(evt.detail.intersectedEl);
  }