# When I use function registerMarkup to add a new markup in the viewer,the nodes can't click

**URL:** https://forum.techsoft3d.com/t/when-i-use-function-registermarkup-to-add-a-new-markup-in-the-viewer-the-nodes-cant-click/1293
**Category:** HOOPS Visualize Web
**Created:** [January 10, 2023, 8:32am UTC](https://forum.techsoft3d.com/t/when-i-use-function-registermarkup-to-add-a-new-markup-in-the-viewer-the-nodes-cant-click/1293 "2023-01-10T08:32:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![619944680](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/619944680/32/516_2.png) [@619944680](https://forum.techsoft3d.com/u/619944680)
#### Post date: [January 10, 2023, 8:32am UTC](https://forum.techsoft3d.com/t/when-i-use-function-registermarkup-to-add-a-new-markup-in-the-viewer-the-nodes-cant-click/1293/1 "2023-01-10T08:32:31Z")

</div>

I use function registerMarkup to add a new markup in the viewer,then the nodes can’t click,but models also can rotate.It’s seems like the click event invalidation.Because the callback selectionArray can’t print anything.What are the possible reasons?  
 ![20230110_162513](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/093f53ade696c5c5582077ed020b5e9219b29ab6.gif)

---

<div class="post-metadata">

### Author: ![guido](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/guido/32/115_2.png) [@guido](https://forum.techsoft3d.com/u/guido)
#### Post date: [January 11, 2023, 12:18am UTC](https://forum.techsoft3d.com/t/when-i-use-function-registermarkup-to-add-a-new-markup-in-the-viewer-the-nodes-cant-click/1293/2 "2023-01-11T00:18:40Z")

</div>

Does you markup object have a “hit” function as described in the link below to ensure that it can be selected? Maybe that function consumes the click events in your case.  
It might be good to provide us with sample code.

[https://developer.techsoft3d.com/documentation/communicator/latest/build/prog\_guide/viewing/markup/advanced-markup.html](https://developer.techsoft3d.com/documentation/communicator/latest/build/prog_guide/viewing/markup/advanced-markup.html)
