# DragControls - Enable/disable dragging for individual objects

**URL:** <https://discourse.threejs.org/t/dragcontrols-enable-disable-dragging-for-individual-objects/11827>\
**Category:** Questions\
**Tags:** drag-controls\
**Created:** [January 2, 2020, 4:22pm UTC](https://discourse.threejs.org/t/dragcontrols-enable-disable-dragging-for-individual-objects/11827 "2020-01-02T16:22:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BulliM](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@BulliM](https://discourse.threejs.org/u/BulliM)\
**Post date:** [January 2, 2020, 4:22pm UTC](https://discourse.threejs.org/t/dragcontrols-enable-disable-dragging-for-individual-objects/11827/1 "2020-01-02T16:22:15Z")

</div>

I’ve added DragControls to a scene.

```
var dragControls = new DragControls(draggroup.children, camera, renderer.domElement);
dragControls.addEventListener('dragstart', function(event) {
  dragindex = Array.from(draggroup.children).indexOf(event.object);
});

```

All children of draggroup are actve. I want to deactivate first children from dragging,without remove it from draggroup, but how?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [March 18, 2020, 1:44pm UTC](https://discourse.threejs.org/t/dragcontrols-enable-disable-dragging-for-individual-objects/11827/2 "2020-03-18T13:44:23Z")

</div>

Sorry, this one was overlooked.

> [@BulliM](#):
>
> I want to deactivate first children from dragging,without remove it from draggroup, but how?

That is not possible with your current setup. I suggest you manage all draggable objects in a separate array like demonstrate by the [official example](https://threejs.org/examples/misc_controls_drag). In this way, they can be all part of a single group object but still added/removed individually to/from the controls.
