# how to zoom with scroll wheel through mouse pointer in "VTK"

**URL:** https://discourse.vtk.org/t/how-to-zoom-with-scroll-wheel-through-mouse-pointer-in-vtk/11705
**Category:** Support
**Created:** [June 13, 2023, 5:52pm UTC](https://discourse.vtk.org/t/how-to-zoom-with-scroll-wheel-through-mouse-pointer-in-vtk/11705 "2023-06-13T17:52:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jaafar\_Nasrabadi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jaafar_nasrabadi/32/1387_2.png) [@Jaafar\_Nasrabadi](https://discourse.vtk.org/u/Jaafar_Nasrabadi)
#### Post date: [June 13, 2023, 5:52pm UTC](https://discourse.vtk.org/t/how-to-zoom-with-scroll-wheel-through-mouse-pointer-in-vtk/11705/1 "2023-06-13T17:52:37Z")

</div>

I have developed an app to process 3D STL files. How to zoom in the screen towards the mouse pointer instead of the center of screen?

---

<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: [June 14, 2023, 10:32pm UTC](https://discourse.vtk.org/t/how-to-zoom-with-scroll-wheel-through-mouse-pointer-in-vtk/11705/2 "2023-06-14T22:32:22Z")

</div>

Hello,

Paraview has recently added such functionality. You can take a look at the respective code here;:[https://gitlab.kitware.com/paraview/paraview/-/merge\_requests/5564/diffs?commit\_id=cdde10b3116d0508aae13e3fe2ac0cd58faaacb0](https://gitlab.kitware.com/paraview/paraview/-/merge_requests/5564/diffs?commit_id=cdde10b3116d0508aae13e3fe2ac0cd58faaacb0)

best,

PC
