# Automatically ENABLE panning but DISABLE zooming

**URL:** <https://community.plotly.com/t/automatically-enable-panning-but-disable-zooming/9141>\
**Category:** plotly.js\
**Created:** [March 22, 2018, 1:10pm UTC](https://community.plotly.com/t/automatically-enable-panning-but-disable-zooming/9141 "2018-03-22T13:10:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![japz0r](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@japz0r](https://community.plotly.com/u/japz0r)\
**Post date:** [March 22, 2018, 1:10pm UTC](https://community.plotly.com/t/automatically-enable-panning-but-disable-zooming/9141/1 "2018-03-22T13:10:01Z")

</div>

Is there anyway to enable a user to pan on the y-axis but disable zoom on the y-axis completely?

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [March 22, 2018, 3:24pm UTC](https://community.plotly.com/t/automatically-enable-panning-but-disable-zooming/9141/2 "2018-03-22T15:24:42Z")

</div>

Not at the moment unfortunately.

I’d recommend subscribing to [https://github.com/plotly/plotly.js/issues/1876](https://github.com/plotly/plotly.js/issues/1876) for the most up-to-date development info on that front.

---

<div class="post-metadata">

**Author:** ![crispychicken](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/crispychicken/32/3142_2.png) [@crispychicken](https://community.plotly.com/u/crispychicken)\
**Post date:** [May 5, 2018, 2:19am UTC](https://community.plotly.com/t/automatically-enable-panning-but-disable-zooming/9141/3 "2018-05-05T02:19:32Z")

</div>

Is there a way to make pan2d the default interaction type for scatter type charts? For my users I expect mouse wheel / scroll will be intuitive for zooming. Also, I’m using the react-plotly library, if that matters.

---

<div class="post-metadata">

**Author:** ![crispychicken](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/crispychicken/32/3142_2.png) [@crispychicken](https://community.plotly.com/u/crispychicken)\
**Post date:** [May 5, 2018, 2:28am UTC](https://community.plotly.com/t/automatically-enable-panning-but-disable-zooming/9141/4 "2018-05-05T02:28:22Z")

</div>

I found it here: [How to select pan as default tool](https://community.plotly.com/t/how-to-select-pan-as-default-tool/3152)

With react-plotly it’s:

```
<Plot layout={ dragmode: 'pan' }/>

```

Yay!
