# Applying Decal mesh through Raycasting only happens on pointer move

**URL:** <https://forum.babylonjs.com/t/applying-decal-mesh-through-raycasting-only-happens-on-pointer-move/40964>\
**Category:** Questions\
**Tags:** decals\
**Created:** [May 19, 2023, 5:37am UTC](https://forum.babylonjs.com/t/applying-decal-mesh-through-raycasting-only-happens-on-pointer-move/40964 "2023-05-19T05:37:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adlee\_Xavier](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/adlee_xavier/32/28592_2.png) [@Adlee\_Xavier](https://forum.babylonjs.com/u/Adlee_Xavier)\
**Post date:** [May 19, 2023, 5:37am UTC](https://forum.babylonjs.com/t/applying-decal-mesh-through-raycasting-only-happens-on-pointer-move/40964/1 "2023-05-19T05:37:00Z")

</div>

Hi, I am trying to drag an html image into the babylonjs 3D scene and while dropping that image on to a GLB model in Babylonjs scene that image will be transformed to a decal and will get applied on to the model.  
The problem I am facing is that while dropping the image raycasting is not happening, raycasting gets activated only when the pointer moves after dropping the image. I want it to happen on dropping event. Is there any fixes

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [May 19, 2023, 8:19am UTC](https://forum.babylonjs.com/t/applying-decal-mesh-through-raycasting-only-happens-on-pointer-move/40964/2 "2023-05-19T08:19:34Z")

</div>

You can call `scene.pick` yourself to get the same result than a ray cast.

---

<div class="post-metadata">

**Author:** ![Adlee\_Xavier](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/adlee_xavier/32/28592_2.png) [@Adlee\_Xavier](https://forum.babylonjs.com/u/Adlee_Xavier)\
**Post date:** [May 29, 2023, 9:16am UTC](https://forum.babylonjs.com/t/applying-decal-mesh-through-raycasting-only-happens-on-pointer-move/40964/3 "2023-05-29T09:16:03Z")

</div>

thank you for the reply, still the decal wont be applied to the GLB model without a pointer move event occurence

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [May 29, 2023, 9:25am UTC](https://forum.babylonjs.com/t/applying-decal-mesh-through-raycasting-only-happens-on-pointer-move/40964/4 "2023-05-29T09:25:51Z")

</div>

Would you be able to provide a repro in the Playground? Applying the decal should not depend on using a pointer move event.
