# scene.pointerXY inaccurate when transform:scale applied to canvas

**URL:** <https://forum.babylonjs.com/t/scene-pointerxy-inaccurate-when-transform-scale-applied-to-canvas/46484>\
**Category:** Questions\
**Created:** [December 16, 2023, 2:34pm UTC](https://forum.babylonjs.com/t/scene-pointerxy-inaccurate-when-transform-scale-applied-to-canvas/46484 "2023-12-16T14:34:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DukeVen](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dukeven/32/34217_2.png) [@DukeVen](https://forum.babylonjs.com/u/DukeVen)\
**Post date:** [December 16, 2023, 2:34pm UTC](https://forum.babylonjs.com/t/scene-pointerxy-inaccurate-when-transform-scale-applied-to-canvas/46484/1 "2023-12-16T14:34:37Z")

</div>

When applying transform: scale() to any of the parent divs of the renderCanvas, scene.pointerX and scene.pointerY values will have an offset, based on the scale value in transfrom.  
How would I be able to fix this issue, without having to remove the scale transform from the div?

Here’s a PG: [https://playground.babylonjs.com/#Q05HRF#2](https://playground.babylonjs.com/#Q05HRF#2)  
Click anywhere to create a sphere using scene.pick(pointerx, pointery), but you’ll notice that it is not accurate, to where its supposed to create the sphere.

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [December 16, 2023, 4:47pm UTC](https://forum.babylonjs.com/t/scene-pointerxy-inaccurate-when-transform-scale-applied-to-canvas/46484/2 "2023-12-16T16:47:17Z")

</div>

Probably this thread may help - [Problem with scene pick after canvas has been moved by css](https://forum.babylonjs.com/t/problem-with-scene-pick-after-canvas-has-been-moved-by-css/31162)

---

<div class="post-metadata">

**Author:** ![DukeVen](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dukeven/32/34217_2.png) [@DukeVen](https://forum.babylonjs.com/u/DukeVen)\
**Post date:** [December 16, 2023, 8:56pm UTC](https://forum.babylonjs.com/t/scene-pointerxy-inaccurate-when-transform-scale-applied-to-canvas/46484/3 "2023-12-16T20:56:51Z")

</div>

Thank you.

> [@Problem with scene pick after canvas has been moved by css](https://forum.babylonjs.com/t/problem-with-scene-pick-after-canvas-has-been-moved-by-css/31162/2):
>
> We do not support CSS transform for picking

It seems there is no solution 🤔
