# Mesh follow mousepointer in HTML-DragOver-Event

**URL:** <https://forum.babylonjs.com/t/mesh-follow-mousepointer-in-html-dragover-event/3291>\
**Category:** Questions\
**Created:** [May 17, 2019, 8:04am UTC](https://forum.babylonjs.com/t/mesh-follow-mousepointer-in-html-dragover-event/3291 "2019-05-17T08:04:15Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![wulf11](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/wulf11/32/2196_2.png) [@wulf11](https://forum.babylonjs.com/u/wulf11)\
**Post date:** [May 18, 2019, 5:30pm UTC](https://forum.babylonjs.com/t/mesh-follow-mousepointer-in-html-dragover-event/3291/8 "2019-05-18T17:30:06Z")

</div>

Using again your code from Version 4 brought me a ‘breakthrough’ check:  
[https://www.babylonjs-playground.com/#F7ZZJF#6](https://www.babylonjs-playground.com/#F7ZZJF#6) 😌  
(need to proof it a bit more, but could not hold it back to share)

I used the code you supplied and just changed the the **pointer.X** to **evt.offsetX**!  
Will now try it in my project code where the canvas has other dimensions. I hope that will not affect the offsetX values in a way that it breaks the behavoir.

Thank you very much for bringing me here 😍

---

_[View the full topic](https://forum.babylonjs.com/t/mesh-follow-mousepointer-in-html-dragover-event/3291)._
