# Mouse drag event remapping ?

**URL:** https://discourse.vtk.org/t/mouse-drag-event-remapping/11882
**Category:** Support
**Created:** [July 5, 2023, 8:53pm UTC](https://discourse.vtk.org/t/mouse-drag-event-remapping/11882 "2023-07-05T20:53:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ujjwala](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/u/7feea3/32.png) [@ujjwala](https://discourse.vtk.org/u/ujjwala)
#### Post date: [July 5, 2023, 8:53pm UTC](https://discourse.vtk.org/t/mouse-drag-event-remapping/11882/1 "2023-07-05T20:53:54Z")

</div>

Hi,

I have a unstructured grid in QVTKOpenGLNativeWidget, which on a right mouse drag event I want to move.  
**I noticed that by default this behavior is already implemented using the middle mouse wheel/button drag event.** Is there a way to change/override ( to right mouse button drag) this mapping in my code ? I would prefer not to reimplement this functionality ☹

Any help/suggestions would be greatly appreciated !  
Thanks,  
Ujjwala

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [July 7, 2023, 5:25pm UTC](https://discourse.vtk.org/t/mouse-drag-event-remapping/11882/2 "2023-07-07T17:25:41Z")

</div>

Hello,

Please, take a look at this: [How to put a limit to zoom in? - #2 by Paulo\_Carvalho](https://discourse.vtk.org/t/how-to-put-a-limit-to-zoom-in/9819/2)

take care,

PC
