{"action":"closed","issue":{"url":"https://api.github.com/repos/bevacqua/dragula/issues/121","repository_url":"https://api.github.com/repos/bevacqua/dragula","labels_url":"https://api.github.com/repos/bevacqua/dragula/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/bevacqua/dragula/issues/121/comments","events_url":"https://api.github.com/repos/bevacqua/dragula/issues/121/events","html_url":"https://github.com/bevacqua/dragula/issues/121","id":96394397,"number":121,"title":"Scroll while dragging","user":{"login":"bryannielsen","id":563996,"avatar_url":"https://avatars.githubusercontent.com/u/563996?v=3","gravatar_id":"","url":"https://api.github.com/users/bryannielsen","html_url":"https://github.com/bryannielsen","followers_url":"https://api.github.com/users/bryannielsen/followers","following_url":"https://api.github.com/users/bryannielsen/following{/other_user}","gists_url":"https://api.github.com/users/bryannielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/bryannielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryannielsen/subscriptions","organizations_url":"https://api.github.com/users/bryannielsen/orgs","repos_url":"https://api.github.com/users/bryannielsen/repos","events_url":"https://api.github.com/users/bryannielsen/events{/privacy}","received_events_url":"https://api.github.com/users/bryannielsen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bevacqua/dragula/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/bevacqua/dragula/labels/help-wanted","name":"help-wanted","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-07-21T19:10:03Z","updated_at":"2016-02-05T14:13:47Z","closed_at":"2016-02-05T14:13:47Z","body":"I see two situations where implementing some scrolling would be very helpful -\r\n\r\n**If the container is taller than the viewport.**\r\nIt would be nice if the plugin could scroll the page when you hit the edge of the viewport while dragging an item.\r\n\r\n**If the target container has a height restriction along with `overflow:scroll`.**\r\nSimilarly, the plugin could change the scroll position of the target container when you hit an edge.\r\n\r\nI made an attempt at implementing this but it seems that my handler bound to `mousemove` was only being triggered when I dragged an element outside of the container and back in.  I'm not sure if the plugin is killing `mousemove` events for performance reasons (that's my guess) but is there any other way to get the position of the dragged element as it moves?\r\n\r\nThanks!"}}