microsoft / clarity-js

This library has moved and is now available at
https://github.com/microsoft/clarity
Other
220 stars 32 forks source link

Subscribe to watch for scroll/change/input on elements during 'discover' phase #130

Closed ssivov closed 5 years ago

ssivov commented 5 years ago

We were only calling 'watch' method on nodes added through mutations on the page. Nodes that were already on the page when Clarity activates never got their event listeners attached, so we were failing to observe scrolls/inputs/change on those elements.