# Mouse zoom and pan without holding CTRL

**URL:** <https://forum.commonvisionblox.com/t/mouse-zoom-and-pan-without-holding-ctrl/1936>\
**Category:** .Net API\
**Tags:** display\
**Created:** [April 7, 2023, 7:26am UTC](https://forum.commonvisionblox.com/t/mouse-zoom-and-pan-without-holding-ctrl/1936 "2023-04-07T07:26:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paco](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@Paco](https://forum.commonvisionblox.com/u/Paco)\
**Post date:** [April 7, 2023, 7:26am UTC](https://forum.commonvisionblox.com/t/mouse-zoom-and-pan-without-holding-ctrl/1936/1 "2023-04-07T07:26:28Z")

</div>

Hey, I use the cvb:display in C# WPF and I would like to know if there is a way to zoom and pan with the mouse without holding the CTRL key ?

Thanks.

---

<div class="post-metadata">

**Author:** ![TStadler](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/tstadler/32/308_2.png) [@TStadler](https://forum.commonvisionblox.com/u/TStadler)\
**Post date:** [April 12, 2023, 11:33am UTC](https://forum.commonvisionblox.com/t/mouse-zoom-and-pan-without-holding-ctrl/1936/2 "2023-04-12T11:33:01Z")

</div>

Hi @Paco, unfortunately this is currently not possible, since the CTRL key is hardcoded in the MouseWheel event. I do not think there is an easy solution for what you are looking for, but we will talk about making the key optional/configurable.

Regards,  
Tim

---

<div class="post-metadata">

**Author:** ![Paco](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@Paco](https://forum.commonvisionblox.com/u/Paco)\
**Post date:** [April 13, 2023, 8:22am UTC](https://forum.commonvisionblox.com/t/mouse-zoom-and-pan-without-holding-ctrl/1936/3 "2023-04-13T08:22:19Z")

</div>

Hi, yes it will be great to have it this way that having to reimplement the displacement mechanisms.Thanks for your response.

Have a good day,  
Paco
