{"action":"created","issue":{"url":"https://api.github.com/repos/almende/vis/issues/596","labels_url":"https://api.github.com/repos/almende/vis/issues/596/labels{/name}","comments_url":"https://api.github.com/repos/almende/vis/issues/596/comments","events_url":"https://api.github.com/repos/almende/vis/issues/596/events","html_url":"https://github.com/almende/vis/issues/596","id":55110026,"number":596,"title":"If you scroll down to view a network, then hover, the hover is offset incorrectly","user":{"login":"AngledLuffa","id":3411033,"avatar_url":"https://avatars.githubusercontent.com/u/3411033?v=3","gravatar_id":"","url":"https://api.github.com/users/AngledLuffa","html_url":"https://github.com/AngledLuffa","followers_url":"https://api.github.com/users/AngledLuffa/followers","following_url":"https://api.github.com/users/AngledLuffa/following{/other_user}","gists_url":"https://api.github.com/users/AngledLuffa/gists{/gist_id}","starred_url":"https://api.github.com/users/AngledLuffa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AngledLuffa/subscriptions","organizations_url":"https://api.github.com/users/AngledLuffa/orgs","repos_url":"https://api.github.com/users/AngledLuffa/repos","events_url":"https://api.github.com/users/AngledLuffa/events{/privacy}","received_events_url":"https://api.github.com/users/AngledLuffa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/almende/vis/labels/issue","name":"issue","color":"d4c5f9"},{"url":"https://api.github.com/repos/almende/vis/labels/Network","name":"Network","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-22T03:22:50Z","updated_at":"2015-01-22T13:01:02Z","closed_at":null,"body":"Here is a sample where you might need to scroll down to view the network.  If you do so, then try to hover over the nodes, the location of the hover is offset vertically.  Instead of registering a hover that is directly where the cursor is, it seems to register hovers as if the window had been scrolled even further than it was actually scrolled.  This happens on my Mac on both Safari 8.0 and Firefox 35.0.\r\n\r\n\r\n```\r\n<body>\r\n\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\nfoo<br>\r\n\r\n<div id=\"mynetwork\"></div>\r\n\r\n    <link href=\"http://visjs.org/dist/vis.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n    <script type=\"text/javascript\" src=\"http://visjs.org/dist/vis.js\"></script>\r\n\r\n<script type=\"text/javascript\">\r\n    // create an array with nodes\r\n    var nodes = [\r\n        {id: 1, label: 'Node 1'},\r\n        {id: 2, label: 'Node 2'},\r\n        {id: 3, label: 'Node 3'},\r\n        {id: 4, label: 'Node 4'},\r\n        {id: 5, label: 'Node 5'}\r\n    ];\r\n\r\n    // create an array with edges\r\n    var edges = [\r\n        {from: 1, to: 2},\r\n        {from: 1, to: 3},\r\n        {from: 2, to: 4},\r\n        {from: 2, to: 5}\r\n    ];\r\n\r\n    // create a network\r\n    var container = document.getElementById('mynetwork');\r\n    var data = {\r\n        nodes: nodes,\r\n        edges: edges\r\n    };\r\n    var options = {\r\n        width: '400px',\r\n        height: '400px',\r\n        hover: true,\r\n        zoomable: false,\r\n    };\r\n    var network = new vis.Network(container, data, options);\r\n</script>\r\n\r\n</body>\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/almende/vis/issues/comments/71016758","html_url":"https://github.com/almende/vis/issues/596#issuecomment-71016758","issue_url":"https://api.github.com/repos/almende/vis/issues/596","id":71016758,"user":{"login":"AlexDM0","id":5363277,"avatar_url":"https://avatars.githubusercontent.com/u/5363277?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexDM0","html_url":"https://github.com/AlexDM0","followers_url":"https://api.github.com/users/AlexDM0/followers","following_url":"https://api.github.com/users/AlexDM0/following{/other_user}","gists_url":"https://api.github.com/users/AlexDM0/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDM0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDM0/subscriptions","organizations_url":"https://api.github.com/users/AlexDM0/orgs","repos_url":"https://api.github.com/users/AlexDM0/repos","events_url":"https://api.github.com/users/AlexDM0/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDM0/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T13:01:02Z","updated_at":"2015-01-22T13:01:02Z","body":"Hi,\r\n\r\nThere seems to be something wrong with the dist in our current release. We'll try to fix this today. It does not occur on the develop branch. There is a good chance that this fixes the #585 as well.\r\n\r\nRegards,\r\n\r\nAlex"}}