import { Feature as s } from "../../motion/features/Feature.es.js";
import { VisualElementDragControls as t } from "./VisualElementDragControls.es.js";
import { noop as r } from "../../../../../../../motion-utils@12.23.6/node_modules/motion-utils/dist/es/noop.es.js";
class u extends s {
  constructor(o) {
    super(o), this.removeGroupControls = r, this.removeListeners = r, this.controls = new t(o);
  }
  mount() {
    const { dragControls: o } = this.node.getProps();
    o && (this.removeGroupControls = o.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || r;
  }
  unmount() {
    this.removeGroupControls(), this.removeListeners();
  }
}
export {
  u as DragGesture
};
//# sourceMappingURL=index.es.js.map
