# Reset the zoom state dynamically?

**URL:** <https://talk.observablehq.com/t/reset-the-zoom-state-dynamically/8829>\
**Category:** Help\
**Created:** [February 20, 2024, 4:55am UTC](https://talk.observablehq.com/t/reset-the-zoom-state-dynamically/8829 "2024-02-20T04:55:24Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [February 22, 2024, 1:14pm UTC](https://talk.observablehq.com/t/reset-the-zoom-state-dynamically/8829/6 "2024-02-22T13:14:42Z")

</div>

This might help (ignore the part about removing the handlers):

> [@update value of another input when an input is triggered in a multi input single object](https://talk.observablehq.com/t/update-value-of-another-input-when-an-input-is-triggered-in-a-multi-input-single-object/8532/8):
>
> Be sure to take a look at the [d3-zoom docs](https://d3js.org/d3-zoom#zoom_transform). There you’ll find an example to reset a zoom transform, which you need to apply before you remove the handlers so that your SVG can still update: } else { svgOrigin.call(zoom.transform, d3.zoomIdentity); // Remove all \*.zoom event handlers svgOrigin.on(".zoom", null); }

---

_[View the full topic](https://talk.observablehq.com/t/reset-the-zoom-state-dynamically/8829)._
