# Issue with HTML Interaction in Babylon.js 3D Scene (HtmlMesh)

**URL:** <https://forum.babylonjs.com/t/issue-with-html-interaction-in-babylon-js-3d-scene-htmlmesh/58526>\
**Category:** Questions\
**Tags:** gui, pointerevents, html, events\
**Created:** [May 19, 2025, 11:13am UTC](https://forum.babylonjs.com/t/issue-with-html-interaction-in-babylon-js-3d-scene-htmlmesh/58526 "2025-05-19T11:13:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZedroPappa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/zedropappa/32/46602_2.png) [@ZedroPappa](https://forum.babylonjs.com/u/ZedroPappa)\
**Post date:** [May 19, 2025, 11:13am UTC](https://forum.babylonjs.com/t/issue-with-html-interaction-in-babylon-js-3d-scene-htmlmesh/58526/1 "2025-05-19T11:13:47Z")

</div>

Hello Babylon.js community, 👋

I’m currently developing a 3D scene using Babylon.js with HTML content rendered on planes using [HtmlMesh](https://doc.babylonjs.com/addons/htmlMesh/), but I’m encountering an issue when it comes to handling events within these special meshes that I hope someone can help me solve.

## Current Implementation

I’ve created, for debugging purposes, a scene with HTML content rendered on a plane using **HtmlMesh**. The HTML includes a button that I want users to interact with. The cursor is always displaying as a picking hand; the click events aren’t being registered correctly.

## The Problem

When I click on the HTML **button** within the **HtmlMesh** :

- The cursor is always rendering as a picking hand, indicating unintended hover detection.
- The click events aren’t being captured by the HTML elements and nothing prints to the console;
- I only get **PickingInfo** console logs when clicking outside the **HtmlMesh** areas

## What I’ve Tried

I’ve created a test implementation specifically to isolate this issue.

> **[GitHub - PedroZappa/babylonjs\_events](https://github.com/PedroZappa/babylonjs_events)**
>
> Contribute to PedroZappa/babylonjs\_events development by creating an account on GitHub.

## Technical Details

I’m using:

- Babylon.js latest version
- TypeScript for implementation
- HTML content is being properly rendered on the planes
- Standard event listeners for the HTML elements (not sure how to make them work…)

## Questions

1. Is there a specific way to handle event propagation between Babylon.js 3D scene and HTML content?
2. Do I need to configure something special for the HtmlMesh to allow click events to pass through?
3. Is there a known limitation or workaround for interactive HTML content in Babylon.js scenes?

Any guidance or examples of correctly implementing interactive HTML content within a Babylon.js scene would be greatly appreciated! 🙂

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [May 19, 2025, 3:11pm UTC](https://forum.babylonjs.com/t/issue-with-html-interaction-in-babylon-js-3d-scene-htmlmesh/58526/2 "2025-05-19T15:11:15Z")

</div>

Hey there! for us to help you conveniently I would recommend to repro in the PG directly.  
I guess you saw the default demo right:  
[HtmlMesh Example PG | Babylon.js Playground](https://playground.babylonjs.com/#Y2LIXI#44)

You can see that the checkboxes work for instance in that demo
