# Disable panning with right mouse

**URL:** <https://community.thinkgeo.com/t/disable-panning-with-right-mouse/8893>\
**Category:** WPF\
**Created:** [January 24, 2018, 8:30am UTC](https://community.thinkgeo.com/t/disable-panning-with-right-mouse/8893 "2018-01-24T08:30:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonas](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@Jonas](https://community.thinkgeo.com/u/Jonas)\
**Post date:** [January 24, 2018, 8:30am UTC](https://community.thinkgeo.com/t/disable-panning-with-right-mouse/8893/1 "2018-01-24T08:30:37Z")

</div>

When you hold down the left or right mouse button and move the mouse over the map, the map will be panned. I want to disable the right mouse button in this regard, so that you can only pan the map while holding the left mouse button.

I have looked for this setting, but have not found it. Does it exist?

I found a different post [here](https://community.thinkgeo.com/t/mouse-right-button-pressed-and-mouse-move/2727/2) saying that I can write my own ExtentInteractiveOverlay and apply it as the maps ExtentOverlay - is that a good idea?

Thanks  
Jonas

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [January 25, 2018, 5:11am UTC](https://community.thinkgeo.com/t/disable-panning-with-right-mouse/8893/2 "2018-01-25T05:11:01Z")

</div>

Hi Jonas,

Yes the post you found provide the correct solution.

Please try attached sample.

[8893.zip](https://community.thinkgeo.com/uploads/default/original/3X/9/3/931ca4788061c1f09868910f4c38488349695d2a.zip) (101.1 KB)

Regards,

Ethan
