
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
drag-controls-tnny
Advanced tools
Drag controls for https://github.com/mrdoob/three.js with support for ES6 import
Drag controls for https://github.com/mrdoob/three.js with support for ES6 import
Inspired by https://github.com/yomotsu/camera-controls to create the ES6 module
npm install drag-controls
import * as THREE from 'three'
import DragControls from 'drag-controls'
DragControls.install({THREE: THREE})
var objects = []
// init threejs scene
const camera = new THREE.PerspectiveCamera(60, width / height, 0.01, 1000)
const renderer = new THREE.WebGLRenderer()
// set renderer size and append domElement to the desired conponent
// add some meshes to the scene and the 'objects' array
const dragControls = new DragControls(objects, camera, domElement)
// you may also want to add an mouse move event listener to render when moving objects
renderer.domElement.addEventListener("mousemove", function() {
renderer.render(scene, camera)
});
FAQs
Drag controls for https://github.com/mrdoob/three.js with support for ES6 import
The npm package drag-controls-tnny receives a total of 1 weekly downloads. As such, drag-controls-tnny popularity was classified as not popular.
We found that drag-controls-tnny demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.