# View Canvas mouse click coordinates

**URL:** <https://forum.inductiveautomation.com/t/view-canvas-mouse-click-coordinates/84636>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [January 23, 2024, 1:07pm UTC](https://forum.inductiveautomation.com/t/view-canvas-mouse-click-coordinates/84636 "2024-01-23T13:07:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [January 23, 2024, 1:07pm UTC](https://forum.inductiveautomation.com/t/view-canvas-mouse-click-coordinates/84636/1 "2024-01-23T13:07:55Z")

</div>

I need to implement a kind of graphic editor, where the operator can add "templates" to a plant. I'm using a _View Canvas_ and the operator is supposed to click on the _Canvas_ where he wants the new template to be placed. In the _mouse click_ events I can get the _X/Y client/page/screen coordinates,_ but non of them let me know the coordinates relative to the top/left canvas corner. Is there any way to get those values? Or at least is there a way to know the x/y coordinates of the top/left canvas corner?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/f/8fc6d6f40fb2d448aff9e884a40adb43ba28ef41.png)

Thanks in advance, regards

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 5, 2025, 5:33pm UTC](https://forum.inductiveautomation.com/t/view-canvas-mouse-click-coordinates/84636/2 "2025-03-05T17:33:06Z")

</div>

Bump!  
I'm working on a similar application and would appreciate any help in finding a solution.

 ![View Canvas click coordinates](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/a/9a7a085c2f6076f226fe03d3baaff98374f6a17a.png)

There's a bug in Designer too. When I click on **①** in a View Canvas in Preview mode it returns x: 21, y: 21 or thereabouts instead of x: 0, y: 0. This suggests that the origin is over at **②**.

Thanks!

---

<div class="post-metadata">

**Author:** ![DNice](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@DNice](https://forum.inductiveautomation.com/u/DNice)\
**Post date:** [August 13, 2025, 10:04am UTC](https://forum.inductiveautomation.com/t/view-canvas-mouse-click-coordinates/84636/3 "2025-08-13T10:04:20Z")

</div>

Anyone get this working? I have a new view idea that needs X,Y position tracking as well.
