Title: Replay feature appears to be interfering with iOS browser/webview click events · Issue #14534 · getsentry/sentry-javascript · GitHub
Open Graph Title: Replay feature appears to be interfering with iOS browser/webview click events · Issue #14534 · getsentry/sentry-javascript
X Title: Replay feature appears to be interfering with iOS browser/webview click events · Issue #14534 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/14534
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Replay feature appears to be interfering with iOS browser/webview click events","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\nSentry Browser Loader\n\n### SDK Version\n\n8.x\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\nCodePen link: https://codepen.io/FlowSavvy/pen/ZYzYjvj\n\n```\n\u003c!DOCTYPE html>\n\u003chtml lang=\"en\">\n\u003chead>\n \u003cmeta charset=\"UTF-8\">\n \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n \u003ctitle>Quick tap demo\u003c/title>\n\n \u003c!-- Replays are enabled on this loader script. Issue occurs. -->\n \u003cscript src=\"https://js.sentry-cdn.com/47dd0666dc7a9145383bc74f7fed0fb7.min.js\" crossorigin=\"anonymous\">\u003c/script>\n\n \u003c!-- Replays are disabled on this loader script. Issue does not occur. Uncomment this script and comment out the other script above to test. -->\n \u003c!-- \u003cscript src=\"https://js.sentry-cdn.com/c2dc41a13a628a4c8da848317cbfe939.min.js\" crossorigin=\"anonymous\">\u003c/script> -->\n\n \u003cstyle>\n body {\n margin: 0;\n padding: 20px;\n font-family: Arial, sans-serif;\n }\n .item {\n padding: 15px;\n background: #e8e8e8;\n cursor: pointer;\n border-radius: 4px;\n margin-bottom: 10px;\n }\n .item.selected {\n background-color: #9ecaff;\n }\n \u003c/style>\n\u003c/head>\n\u003cbody>\n \u003cdiv style=\"display: flex; flex-direction: column; padding: 20px; max-width: 300px;\">\n \u003cdiv class=\"item\">Item 1\u003c/div>\n \u003cdiv class=\"item\">Item 2\u003c/div>\n \u003cdiv class=\"item\">Item 3\u003c/div>\n \u003cdiv class=\"item\">Item 4\u003c/div>\n \u003c/div>\n\n \u003cscript>\n document.querySelectorAll('.item').forEach(item => {\n item.addEventListener('click', (e) => {\n e.target.classList.toggle('selected');\n const now = new Date();\n e.target.textContent = `${now.getHours()}:${now.getMinutes()}:${now.getSeconds()}.${now.getMilliseconds()}`;\n });\n });\n \u003c/script>\n\u003c/body>\n\u003c/html>\n```\n\n### Steps to Reproduce\n\n1. Create a Sentry JavaScript project\n2. Ensure Session Replays are turned on in the loader script configuration page in the Sentry dashboard.\n - The issue does not occur if Replays are turned off, so it seems like the Replay feature is interfering with the click events\n3. Copy the loader script into any project that has multiple elements you can select in quick succession, like a to-do list with multi-select. The [CodePen example](https://codepen.io/FlowSavvy/pen/ZYzYjvj) is a super basic example of this.\n4. Open your project or the CodePen demo on any **iOS** browser.\n - The issue does not occur on Android/Windows. This makes me think it's not a device performance issue, since the Android I tested on is an extremely slow, $30 phone, but it doesn't have any issues with the demo file.\n - iOS device/version doesn't seem to matter. I'm seeing it on both iPhone 13 mini running iOS 18.1.1, and an iPad mini 4 running iOS 14.3\n5. Tap the items in the list quickly in any order. For example, tap the first item, then the second in quick succession.\n - The issue only occurs when tapping the touch screen. If you connect a bluetooth mouse to the same iOS device and click the items in quick succession, there is no issue.\n - The issue does not occur when the same element is tapped in quick succession. It's only when they are different elements in the DOM\n\nExample video: https://flowsavvy-public.s3.us-east-1.amazonaws.com/quick+tap.mov\n\n### Expected Result\n\nList items can be selected/deselected in quick succession with no delay and no click events missed.\n\n### Actual Result\n\nOn iOS browsers, click events after the first click are fired 400-500 milliseconds after tapping the elements, and if you tap more than 2 elements in quick succession, the 2nd click event is completely missed.\n\nSee the example video included in the \"steps to reproduce\" section for a demonstration.","author":{"url":"https://github.com/jacobbarnes","@type":"Person","name":"jacobbarnes"},"datePublished":"2024-11-29T18:05:14Z","url":"https://github.com/getsentry/sentry-javascript/issues/14534"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5931eddf-edde-629e-b4e4-fd32c72b4cca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9AD2:6ADAA:71709:9A66F:6B04AF48 |
| html-safe-nonce | 410e600529c68bcd6b09d4956aa3b3b2f444a93d1607cc540a5bf47df694f90e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUQyOjZBREFBOjcxNzA5OjlBNjZGOjZCMDRBRjQ4IiwidmlzaXRvcl9pZCI6Ijc2MjM2MjgxNjQwNjkzNzE3MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6980590e56c597a67521a055692695086f9dff62fe163d5ceee3044816cadad8 |
| hovercard-subject-tag | issue:2705833061 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/14534/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8de4fe703f6ecd1aff8df4a75a740060116eb8a8467e3f56de6d31a17282ba04/getsentry/sentry-javascript/issues/14534 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8de4fe703f6ecd1aff8df4a75a740060116eb8a8467e3f56de6d31a17282ba04/getsentry/sentry-javascript/issues/14534 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jacobbarnes |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width