{"action":"created","issue":{"url":"https://api.github.com/repos/codemirror/CodeMirror/issues/1642","labels_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/1642/labels{/name}","comments_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/1642/comments","events_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/1642/events","html_url":"https://github.com/codemirror/CodeMirror/issues/1642","id":16165678,"number":1642,"title":"incorrect cursor position on wrapped lines for some users with Chrome","user":{"login":"jdleesmiller","id":160829,"avatar_url":"https://avatars.githubusercontent.com/u/160829?v=3","gravatar_id":"","url":"https://api.github.com/users/jdleesmiller","html_url":"https://github.com/jdleesmiller","followers_url":"https://api.github.com/users/jdleesmiller/followers","following_url":"https://api.github.com/users/jdleesmiller/following{/other_user}","gists_url":"https://api.github.com/users/jdleesmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/jdleesmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdleesmiller/subscriptions","organizations_url":"https://api.github.com/users/jdleesmiller/orgs","repos_url":"https://api.github.com/users/jdleesmiller/repos","events_url":"https://api.github.com/users/jdleesmiller/events{/privacy}","received_events_url":"https://api.github.com/users/jdleesmiller/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2013-06-28T22:41:33Z","updated_at":"2015-10-07T16:35:39Z","closed_at":"2013-08-21T06:58:49Z","body":"We've had several reports of the cursor not appearing in the right place on wrapped lines in Chrome (as evidenced by inserts / deletes happening elsewhere). I still can't reproduce these issues, but now one of our users has submitted screenshots illustrating it on the CodeMirror b-tree demo, which may be of some help.\r\n\r\nUnlike #1219, the string doesn't have any non-ASCII characters. It's just:\r\n\r\nInterpolants are logical assertions over program states that can separate program states that satisfy a desired propert from one that violate the property.\\\\\\\\\r\n\r\nUnlike #1353, it only seems to affect some users -- and never me, so far.\r\n\r\nThe first screenshot shows the apparent position of the cursor, after 'y' in 'satisfy':\r\n\r\n![picture_5](https://f.cloud.github.com/assets/160829/724795/ef8a927c-e03e-11e2-8aad-5fb073b1c901.jpg)\r\n\r\nThe second screenshot shows the result of pressing backspace:\r\n\r\n![picture_6](https://f.cloud.github.com/assets/160829/724794/ea2f1938-e03e-11e2-8827-fca45e039cdb.jpg)\r\n\r\nThe expected result was that the 'y' would be deleted, but the 'f' before the 'y' was deleted instead.\r\n\r\nThe information I have collected from users so far:\r\n\r\n1. This user reported the problem on Chrome stable on Windows 7. The user does not think he has any browser extensions installed. The problem does not appear in Firefox.\r\n\r\n2. It affects both inserts and deletes. It does not matter how you position the cursor (mouse or keyboard arrows).\r\n\r\n3. It is not always off by one -- it sometimes deletes a character several characters behind the apparent cursor position.\r\n\r\n4. The first display line of text (before the wrap) does not have the problem.\r\n\r\nI thought it might be related to the user's locale, but I could not reproduce the issue on a French Windows 7 (up-to-date SP1) running a French Chrome (27.0), which matches this user's setup, so that does not appear to be the case.\r\n\r\nI'll keep trying to get more information about this from the users who report it -- I'm sorry that there's not much to go on yet, but I figured I'd report it here to see whether anyone has any ideas.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/codemirror/CodeMirror/issues/comments/146255397","html_url":"https://github.com/codemirror/CodeMirror/issues/1642#issuecomment-146255397","issue_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/1642","id":146255397,"user":{"login":"danielo515","id":2270425,"avatar_url":"https://avatars.githubusercontent.com/u/2270425?v=3","gravatar_id":"","url":"https://api.github.com/users/danielo515","html_url":"https://github.com/danielo515","followers_url":"https://api.github.com/users/danielo515/followers","following_url":"https://api.github.com/users/danielo515/following{/other_user}","gists_url":"https://api.github.com/users/danielo515/gists{/gist_id}","starred_url":"https://api.github.com/users/danielo515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielo515/subscriptions","organizations_url":"https://api.github.com/users/danielo515/orgs","repos_url":"https://api.github.com/users/danielo515/repos","events_url":"https://api.github.com/users/danielo515/events{/privacy}","received_events_url":"https://api.github.com/users/danielo515/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T16:35:39Z","updated_at":"2015-10-07T16:35:39Z","body":"Hello @marijnh,\r\n\r\nI'm not sure of the refresh() on that particular example, but I'm sure that in the other place where I'm using code-mirror I am triggering the refresh.\r\n\r\nLet me build an example and I'll post it here."}}