Hi @kenan ! Ebenezer here from Engineering Support👋.
Based on our investigation and your description, the unwanted scroll behavior you’re seeing in Safari when toggling the Intercom Messenger could be related to how Safari handles focus and scroll restoration when overlays or iframes are shown and hidden. Specifically, when the Messenger is opened or closed, Safari may attempt to restore the scroll position or focus, but does so incorrectly, causing the page to scroll to the top. This behavior is more noticeable when there are existing messages in the Messenger, as it opens in a different state (message list) compared to when there are no messages (new message view).
At this time, this appears to be a browser-specific issue with Safari’s handling of overlays and iframes, rather than something caused by the Intercom Messenger’s integration code. As a workaround, you could try manually saving the scroll position before opening or closing the Messenger and restoring it afterwards using JavaScript. For example, you can use the Intercom('onShow', ...)
and Intercom('onHide', ...)
event hooks to implement this logic.