{"action":"created","issue":{"url":"https://api.github.com/repos/d3lm/ngx-drag-to-select/issues/36","repository_url":"https://api.github.com/repos/d3lm/ngx-drag-to-select","labels_url":"https://api.github.com/repos/d3lm/ngx-drag-to-select/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/d3lm/ngx-drag-to-select/issues/36/comments","events_url":"https://api.github.com/repos/d3lm/ngx-drag-to-select/issues/36/events","html_url":"https://github.com/d3lm/ngx-drag-to-select/issues/36","id":344407452,"node_id":"MDU6SXNzdWUzNDQ0MDc0NTI=","number":36,"title":"Drag rectangle doesn't take into consideration page scrolling.","user":{"login":"jreijt","id":25050560,"node_id":"MDQ6VXNlcjI1MDUwNTYw","avatar_url":"https://avatars0.githubusercontent.com/u/25050560?v=4","gravatar_id":"","url":"https://api.github.com/users/jreijt","html_url":"https://github.com/jreijt","followers_url":"https://api.github.com/users/jreijt/followers","following_url":"https://api.github.com/users/jreijt/following{/other_user}","gists_url":"https://api.github.com/users/jreijt/gists{/gist_id}","starred_url":"https://api.github.com/users/jreijt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jreijt/subscriptions","organizations_url":"https://api.github.com/users/jreijt/orgs","repos_url":"https://api.github.com/users/jreijt/repos","events_url":"https://api.github.com/users/jreijt/events{/privacy}","received_events_url":"https://api.github.com/users/jreijt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-07-25T11:40:07Z","updated_at":"2018-07-25T15:19:00Z","closed_at":"2018-07-25T14:43:20Z","author_association":"NONE","body":"This is a bit hard to explain and I can't really provide screenshots for it, but here it goes. \r\n\r\nCase 1: \r\nDragging while the page is scrolled to top. \r\nExpected behavior: Rectangle starts where mouse clicks and drags where the mouse goes.\r\nActual behavior: Same as expected (Y) \r\n\r\nCase 2:\r\nDragging while the page is scrolled. \r\nReproduction steps: \r\n\r\n1. Scroll down a bit\r\n2. Try to drag.\r\n\r\nExpected behavior: Rectangle starts where mouse clicks and drags where the mouse goes.\r\nActual behavior: Rectangle starts where the mouse would have been if we hadn't scrolled down, and it drags relatively to its start position. \r\n\r\nSo basically what I think is happening is that the start position of the rectangle when we drag isn't taking into consideration the page scrollY. \r\n\r\nDoes that make sense? I'll be happy to provide more information."},"comment":{"url":"https://api.github.com/repos/d3lm/ngx-drag-to-select/issues/comments/407791981","html_url":"https://github.com/d3lm/ngx-drag-to-select/issues/36#issuecomment-407791981","issue_url":"https://api.github.com/repos/d3lm/ngx-drag-to-select/issues/36","id":407791981,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzc5MTk4MQ==","user":{"login":"d3lm","id":12571019,"node_id":"MDQ6VXNlcjEyNTcxMDE5","avatar_url":"https://avatars1.githubusercontent.com/u/12571019?v=4","gravatar_id":"","url":"https://api.github.com/users/d3lm","html_url":"https://github.com/d3lm","followers_url":"https://api.github.com/users/d3lm/followers","following_url":"https://api.github.com/users/d3lm/following{/other_user}","gists_url":"https://api.github.com/users/d3lm/gists{/gist_id}","starred_url":"https://api.github.com/users/d3lm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3lm/subscriptions","organizations_url":"https://api.github.com/users/d3lm/orgs","repos_url":"https://api.github.com/users/d3lm/repos","events_url":"https://api.github.com/users/d3lm/events{/privacy}","received_events_url":"https://api.github.com/users/d3lm/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T15:19:00Z","updated_at":"2018-07-25T15:19:00Z","author_association":"OWNER","body":"@jreijt @sam-lex Would be great to get your feedback on this [PR](https://github.com/d3lm/ngx-drag-to-select/pull/38) for the FAQ section. Does this answer the question on how to deal with this scenario?"}}
{"actor":{"display_login":"d3lm"}}