{"action":"created","issue":{"url":"https://api.github.com/repos/adobe/brackets/issues/10590","labels_url":"https://api.github.com/repos/adobe/brackets/issues/10590/labels{/name}","comments_url":"https://api.github.com/repos/adobe/brackets/issues/10590/comments","events_url":"https://api.github.com/repos/adobe/brackets/issues/10590/events","html_url":"https://github.com/adobe/brackets/issues/10590","id":57569007,"number":10590,"title":"Clicking on multi-line selection inside inline editor jumps scroll position way downward","user":{"login":"peterflynn","id":1197510,"avatar_url":"https://avatars.githubusercontent.com/u/1197510?v=3","gravatar_id":"","url":"https://api.github.com/users/peterflynn","html_url":"https://github.com/peterflynn","followers_url":"https://api.github.com/users/peterflynn/followers","following_url":"https://api.github.com/users/peterflynn/following{/other_user}","gists_url":"https://api.github.com/users/peterflynn/gists{/gist_id}","starred_url":"https://api.github.com/users/peterflynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterflynn/subscriptions","organizations_url":"https://api.github.com/users/peterflynn/orgs","repos_url":"https://api.github.com/users/peterflynn/repos","events_url":"https://api.github.com/users/peterflynn/events{/privacy}","received_events_url":"https://api.github.com/users/peterflynn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/adobe/brackets/labels/F%20Editor","name":"F Editor","color":"5319e7"},{"url":"https://api.github.com/repos/adobe/brackets/labels/Mac%20only","name":"Mac only","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-02-13T07:42:27Z","updated_at":"2015-02-13T21:28:54Z","closed_at":null,"body":"**New repro steps with Getting Started project**\r\n1. Open Getting Started project and open index.html\r\n2. Scroll down to the `<h3>` on line 61 (\"Quick Edit for CSS and JavaScript\")\r\n3. Invoke Quick Edit on the `<h3>` tag\r\n4. Within the inline editor, create a text selection that spans > 1 line\r\n5. Click the selection\r\n\r\nIf it doesn't repro, scroll so the `<h3>` is further down from the top of the viewport before step 3, _or_ make your window less tall.\r\n\r\n**Old repro steps with JS inline editor**\r\n1. Open Editor.js in the Brackets source\r\n2. In the Editor constructor, place the cursor on the `_getModeFromDocument()` call and press Ctrl-E\r\n3. Inside the inline editor, drag to select some text\r\n4. Click on the selected text\r\n\r\nResult: scroll position jumps down about 250 lines, and focus is lost from the editor\r\n\r\nExpected: selection cleared and cursor remains in inline editor\r\n\r\nThis looks like a regression due to PR #9584 -- if I disable text drag & drop via preferences, the bug goes away.  CC @MarcelGerber\r\n\r\nI'm only able to repro this in the JS inline editor -- not in the CSS inline editor.  If it occurred in the CSS inline editor I think we'd want to block the 1.2 release until a fix is available (or make drag & drop off by default).  If it really only repros in the JS inline editor, I'm less sure...  Seems like we should investigate to at least see if there's an easy fix, though."},"comment":{"url":"https://api.github.com/repos/adobe/brackets/issues/comments/74330099","html_url":"https://github.com/adobe/brackets/issues/10590#issuecomment-74330099","issue_url":"https://api.github.com/repos/adobe/brackets/issues/10590","id":74330099,"user":{"login":"RaymondLim","id":1542488,"avatar_url":"https://avatars.githubusercontent.com/u/1542488?v=3","gravatar_id":"","url":"https://api.github.com/users/RaymondLim","html_url":"https://github.com/RaymondLim","followers_url":"https://api.github.com/users/RaymondLim/followers","following_url":"https://api.github.com/users/RaymondLim/following{/other_user}","gists_url":"https://api.github.com/users/RaymondLim/gists{/gist_id}","starred_url":"https://api.github.com/users/RaymondLim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaymondLim/subscriptions","organizations_url":"https://api.github.com/users/RaymondLim/orgs","repos_url":"https://api.github.com/users/RaymondLim/repos","events_url":"https://api.github.com/users/RaymondLim/events{/privacy}","received_events_url":"https://api.github.com/users/RaymondLim/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T21:28:54Z","updated_at":"2015-02-13T21:28:54Z","body":"Disregard double-clicking. I was referring to the step 4 to click inside the selected text. Single click just sets the cursor to where you click on Windows, but double-click always selects the word you click on."}}