# \[BUG\]Ctrl+Mouse wheel does not zoom to mouse cursor in Coordinate container

**URL:** <https://forum.inductiveautomation.com/t/bug-ctrl-mouse-wheel-does-not-zoom-to-mouse-cursor-in-coordinate-container/36133>\
**Category:** Ignition Early Access\
**Tags:** ignition80, perspective\
**Created:** [June 29, 2020, 1:39am UTC](https://forum.inductiveautomation.com/t/bug-ctrl-mouse-wheel-does-not-zoom-to-mouse-cursor-in-coordinate-container/36133 "2020-06-29T01:39:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 29, 2020, 1:39am UTC](https://forum.inductiveautomation.com/t/bug-ctrl-mouse-wheel-does-not-zoom-to-mouse-cursor-in-coordinate-container/36133/1 "2020-06-29T01:39:49Z")

</div>

When trying to focus zoom to the cursor in a coordinate container, in Vision (or other app) you’d use Ctrl+Mouse wheel to zoom in using the cursor as the centre. However in Perspective, it just zooms into the top left corner

---

<div class="post-metadata">

**Author:** ![BenKearney](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@BenKearney](https://forum.inductiveautomation.com/u/BenKearney)\
**Post date:** [June 29, 2020, 3:33am UTC](https://forum.inductiveautomation.com/t/bug-ctrl-mouse-wheel-does-not-zoom-to-mouse-cursor-in-coordinate-container/36133/2 "2020-06-29T03:33:11Z")

</div>

It’s not that it’s zooming to the top left, per se; when you zoom into any page in a web client it isn’t actually zooming to a particular point - it’s just re-rendering everything with scaled components. Try it out on any other webpage and you’ll see the same result.

The challenge you have is setting up your page to be able to gracefully handle different ‘zoom’ levels while not losing control of your layout. Try zooming into, say, the whatsapp web client and you’ll see that the alignment stays correct and at certain levels of zoom it removes unnecessary elements (like the background). The problem is closely related to how you have to be able to handle different screen sizes.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 29, 2020, 3:56am UTC](https://forum.inductiveautomation.com/t/bug-ctrl-mouse-wheel-does-not-zoom-to-mouse-cursor-in-coordinate-container/36133/3 "2020-06-29T03:56:43Z")

</div>

True. I guess zooming to cursor doesn’t make sense for containers other than the coordinate container, which is where my issue lies. I’ll clarify my topic name, thanks for the info and reply

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [June 29, 2020, 10:40am UTC](https://forum.inductiveautomation.com/t/bug-ctrl-mouse-wheel-does-not-zoom-to-mouse-cursor-in-coordinate-container/36133/4 "2020-06-29T10:40:47Z")

</div>

Hmm, I don’t think a generic container should have such zoom option. My guess is you’re trying to make a component where zooming is a standard interaction. Like a map perhaps?

In that case, you should probably just listen to the [wheel events](https://docs.inductiveautomation.com/display/DOC80/Perspective+Event+Types+Reference#PerspectiveEventTypesReference-WheelEvents) and code your own zooming. Perhaps in the coordinate container to make your calculations more predictable.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 29, 2020, 11:08am UTC](https://forum.inductiveautomation.com/t/bug-ctrl-mouse-wheel-does-not-zoom-to-mouse-cursor-in-coordinate-container/36133/5 "2020-06-29T11:08:39Z")

</div>

I was actually just trying to draw a P&ID mimic page to see how viable it is in Perspective at the moment. It’s fairly hard to line things up though, which is when I tried to zoom
