{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/pulls/comments/169237048","pull_request_review_id":97728843,"id":169237048,"diff_hunk":"@@ -44,5 +58,54 @@\n     popup.querySelector('.popup__close').addEventListener('click', closePopup);\n   };\n \n-  mainPin.addEventListener('mouseup', window.firstStartPage);\n+  mainPin.addEventListener('mousedown', function (evt) {\n+    evt.preventDefault();\n+\n+    var startCoords = {\n+      x: evt.clientX,\n+      y: evt.clientY\n+    };\n+\n+    var onMouseMove = function (moveEvt) {\n+      moveEvt.preventDefault();\n+\n+      var shift = {","path":"js/map.js","position":48,"original_position":48,"commit_id":"ba8960c3c849e202d2a3e8f191ff21df5416a96e","original_commit_id":"ba8960c3c849e202d2a3e8f191ff21df5416a96e","user":{"login":"pepelxD","id":18075096,"avatar_url":"https://avatars3.githubusercontent.com/u/18075096?v=4","gravatar_id":"","url":"https://api.github.com/users/pepelxD","html_url":"https://github.com/pepelxD","followers_url":"https://api.github.com/users/pepelxD/followers","following_url":"https://api.github.com/users/pepelxD/following{/other_user}","gists_url":"https://api.github.com/users/pepelxD/gists{/gist_id}","starred_url":"https://api.github.com/users/pepelxD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepelxD/subscriptions","organizations_url":"https://api.github.com/users/pepelxD/orgs","repos_url":"https://api.github.com/users/pepelxD/repos","events_url":"https://api.github.com/users/pepelxD/events{/privacy}","received_events_url":"https://api.github.com/users/pepelxD/received_events","type":"User","site_admin":false},"body":"не верные расчеты координат, в следствии чего пин двигается не по все карте.\r\nПодумай как можно использовать метрики, чем какие либо зашитые константы.\r\nПин является ребенком карты, у которой есть свойства offsetWidth, offsetHeight. Получить доступ к родителю можно через свойство offsetParent нижний ограничетель не что иное как высота контейнера с фильтрами.","created_at":"2018-02-20T07:49:47Z","updated_at":"2018-02-20T07:49:47Z","html_url":"https://github.com/htmlacademy-javascript/164805-keksobooking/pull/8#discussion_r169237048","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/pulls/8","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/pulls/comments/169237048"},"html":{"href":"https://github.com/htmlacademy-javascript/164805-keksobooking/pull/8#discussion_r169237048"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/pulls/8","id":169849458,"html_url":"https://github.com/htmlacademy-javascript/164805-keksobooking/pull/8","diff_url":"https://github.com/htmlacademy-javascript/164805-keksobooking/pull/8.diff","patch_url":"https://github.com/htmlacademy-javascript/164805-keksobooking/pull/8.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/issues/8","number":8,"state":"open","locked":false,"title":"Личный проект: максимум подвижности","user":{"login":"pipols","id":19201745,"avatar_url":"https://avatars1.githubusercontent.com/u/19201745?v=4","gravatar_id":"","url":"https://api.github.com/users/pipols","html_url":"https://github.com/pipols","followers_url":"https://api.github.com/users/pipols/followers","following_url":"https://api.github.com/users/pipols/following{/other_user}","gists_url":"https://api.github.com/users/pipols/gists{/gist_id}","starred_url":"https://api.github.com/users/pipols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pipols/subscriptions","organizations_url":"https://api.github.com/users/pipols/orgs","repos_url":"https://api.github.com/users/pipols/repos","events_url":"https://api.github.com/users/pipols/events{/privacy}","received_events_url":"https://api.github.com/users/pipols/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: максимум подвижности](https://up.htmlacademy.ru/javascript/12/user/164805/tasks/16)\n\n:boom: https://htmlacademy-javascript.github.io/164805-keksobooking/8/","created_at":"2018-02-18T20:56:30Z","updated_at":"2018-02-20T07:49:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cc6221d62312d130166a831baad36cb95ecebd65","assignee":{"login":"pepelxD","id":18075096,"avatar_url":"https://avatars3.githubusercontent.com/u/18075096?v=4","gravatar_id":"","url":"https://api.github.com/users/pepelxD","html_url":"https://github.com/pepelxD","followers_url":"https://api.github.com/users/pepelxD/followers","following_url":"https://api.github.com/users/pepelxD/following{/other_user}","gists_url":"https://api.github.com/users/pepelxD/gists{/gist_id}","starred_url":"https://api.github.com/users/pepelxD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepelxD/subscriptions","organizations_url":"https://api.github.com/users/pepelxD/orgs","repos_url":"https://api.github.com/users/pepelxD/repos","events_url":"https://api.github.com/users/pepelxD/events{/privacy}","received_events_url":"https://api.github.com/users/pepelxD/received_events","type":"User","site_admin":false},"assignees":[{"login":"pepelxD","id":18075096,"avatar_url":"https://avatars3.githubusercontent.com/u/18075096?v=4","gravatar_id":"","url":"https://api.github.com/users/pepelxD","html_url":"https://github.com/pepelxD","followers_url":"https://api.github.com/users/pepelxD/followers","following_url":"https://api.github.com/users/pepelxD/following{/other_user}","gists_url":"https://api.github.com/users/pepelxD/gists{/gist_id}","starred_url":"https://api.github.com/users/pepelxD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepelxD/subscriptions","organizations_url":"https://api.github.com/users/pepelxD/orgs","repos_url":"https://api.github.com/users/pepelxD/repos","events_url":"https://api.github.com/users/pepelxD/events{/privacy}","received_events_url":"https://api.github.com/users/pepelxD/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/pulls/8/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/pulls/8/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/issues/8/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/statuses/ba8960c3c849e202d2a3e8f191ff21df5416a96e","head":{"label":"pipols:module5-task2","ref":"module5-task2","sha":"ba8960c3c849e202d2a3e8f191ff21df5416a96e","user":{"login":"pipols","id":19201745,"avatar_url":"https://avatars1.githubusercontent.com/u/19201745?v=4","gravatar_id":"","url":"https://api.github.com/users/pipols","html_url":"https://github.com/pipols","followers_url":"https://api.github.com/users/pipols/followers","following_url":"https://api.github.com/users/pipols/following{/other_user}","gists_url":"https://api.github.com/users/pipols/gists{/gist_id}","starred_url":"https://api.github.com/users/pipols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pipols/subscriptions","organizations_url":"https://api.github.com/users/pipols/orgs","repos_url":"https://api.github.com/users/pipols/repos","events_url":"https://api.github.com/users/pipols/events{/privacy}","received_events_url":"https://api.github.com/users/pipols/received_events","type":"User","site_admin":false},"repo":{"id":118660885,"name":"164805-keksobooking","full_name":"pipols/164805-keksobooking","owner":{"login":"pipols","id":19201745,"avatar_url":"https://avatars1.githubusercontent.com/u/19201745?v=4","gravatar_id":"","url":"https://api.github.com/users/pipols","html_url":"https://github.com/pipols","followers_url":"https://api.github.com/users/pipols/followers","following_url":"https://api.github.com/users/pipols/following{/other_user}","gists_url":"https://api.github.com/users/pipols/gists{/gist_id}","starred_url":"https://api.github.com/users/pipols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pipols/subscriptions","organizations_url":"https://api.github.com/users/pipols/orgs","repos_url":"https://api.github.com/users/pipols/repos","events_url":"https://api.github.com/users/pipols/events{/privacy}","received_events_url":"https://api.github.com/users/pipols/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pipols/164805-keksobooking","description":"Максим Дурандин","fork":true,"url":"https://api.github.com/repos/pipols/164805-keksobooking","forks_url":"https://api.github.com/repos/pipols/164805-keksobooking/forks","keys_url":"https://api.github.com/repos/pipols/164805-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pipols/164805-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pipols/164805-keksobooking/teams","hooks_url":"https://api.github.com/repos/pipols/164805-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/pipols/164805-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/pipols/164805-keksobooking/events","assignees_url":"https://api.github.com/repos/pipols/164805-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/pipols/164805-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/pipols/164805-keksobooking/tags","blobs_url":"https://api.github.com/repos/pipols/164805-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pipols/164805-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pipols/164805-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/pipols/164805-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pipols/164805-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/pipols/164805-keksobooking/languages","stargazers_url":"https://api.github.com/repos/pipols/164805-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/pipols/164805-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/pipols/164805-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/pipols/164805-keksobooking/subscription","commits_url":"https://api.github.com/repos/pipols/164805-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/pipols/164805-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/pipols/164805-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/pipols/164805-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/pipols/164805-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/pipols/164805-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pipols/164805-keksobooking/merges","archive_url":"https://api.github.com/repos/pipols/164805-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pipols/164805-keksobooking/downloads","issues_url":"https://api.github.com/repos/pipols/164805-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/pipols/164805-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/pipols/164805-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/pipols/164805-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pipols/164805-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/pipols/164805-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/pipols/164805-keksobooking/deployments","created_at":"2018-01-23T19:48:28Z","updated_at":"2018-01-23T19:48:30Z","pushed_at":"2018-02-18T20:55:59Z","git_url":"git://github.com/pipols/164805-keksobooking.git","ssh_url":"git@github.com:pipols/164805-keksobooking.git","clone_url":"https://github.com/pipols/164805-keksobooking.git","svn_url":"https://github.com/pipols/164805-keksobooking","homepage":null,"size":775,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-javascript:master","ref":"master","sha":"c606978f7566cee1465f52a7b2ee324e0450cc54","user":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"repo":{"id":118659962,"name":"164805-keksobooking","full_name":"htmlacademy-javascript/164805-keksobooking","owner":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-javascript/164805-keksobooking","description":"Максим Дурандин","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/deployments","created_at":"2018-01-23T19:40:36Z","updated_at":"2018-01-23T20:40:46Z","pushed_at":"2018-02-19T05:20:52Z","git_url":"git://github.com/htmlacademy-javascript/164805-keksobooking.git","ssh_url":"git@github.com:htmlacademy-javascript/164805-keksobooking.git","clone_url":"https://github.com/htmlacademy-javascript/164805-keksobooking.git","svn_url":"https://github.com/htmlacademy-javascript/164805-keksobooking","homepage":"https://github.com/pipols/164805-keksobooking","size":793,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/pulls/8"},"html":{"href":"https://github.com/htmlacademy-javascript/164805-keksobooking/pull/8"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/issues/8"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/164805-keksobooking/statuses/ba8960c3c849e202d2a3e8f191ff21df5416a96e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"pepelxD"}}