{"action":"created","issue":{"url":"https://api.github.com/repos/futurepress/epub.js/issues/595","repository_url":"https://api.github.com/repos/futurepress/epub.js","labels_url":"https://api.github.com/repos/futurepress/epub.js/issues/595/labels{/name}","comments_url":"https://api.github.com/repos/futurepress/epub.js/issues/595/comments","events_url":"https://api.github.com/repos/futurepress/epub.js/issues/595/events","html_url":"https://github.com/futurepress/epub.js/issues/595","id":219743068,"node_id":"MDU6SXNzdWUyMTk3NDMwNjg=","number":595,"title":"range.getBoundingClientRect() return 0 for all values","user":{"login":"anatoly314","id":1641594,"node_id":"MDQ6VXNlcjE2NDE1OTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1641594?v=4","gravatar_id":"","url":"https://api.github.com/users/anatoly314","html_url":"https://github.com/anatoly314","followers_url":"https://api.github.com/users/anatoly314/followers","following_url":"https://api.github.com/users/anatoly314/following{/other_user}","gists_url":"https://api.github.com/users/anatoly314/gists{/gist_id}","starred_url":"https://api.github.com/users/anatoly314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anatoly314/subscriptions","organizations_url":"https://api.github.com/users/anatoly314/orgs","repos_url":"https://api.github.com/users/anatoly314/repos","events_url":"https://api.github.com/users/anatoly314/events{/privacy}","received_events_url":"https://api.github.com/users/anatoly314/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-05T23:18:58Z","updated_at":"2018-08-16T22:27:08Z","closed_at":"2017-04-11T20:16:32Z","author_association":"NONE","body":"Hi,\r\nI'm looking for a way to get a callback on selection with selected text and coordinates of selected text. \r\nTrying to do it with latest version of v0.3 and the following code:\r\n\r\n```\r\nbook.rendition.on(\"selected\", function(cfiRange) {\r\n\r\n                book.range(cfiRange).then(function (range) {\r\n                    if (range) {\r\n                        var text = range.toString();\r\n                        console.log(text);\r\n                        var boundedRect = range.getBoundingClientRect();\r\n                        console.log(boundedRect);\r\n                    }\r\n                })\r\n});\r\n```\r\n\r\nSelected text it prints correctly, but boundedRect returns with all values: 0\r\n\r\nI've established a Plunker demo here: https://plnkr.co/edit/XlzLP3J2Pp3q53qIkHjq?p=preview\r\nMaybe somebody has a clue what gone wrong?"},"comment":{"url":"https://api.github.com/repos/futurepress/epub.js/issues/comments/413703355","html_url":"https://github.com/futurepress/epub.js/issues/595#issuecomment-413703355","issue_url":"https://api.github.com/repos/futurepress/epub.js/issues/595","id":413703355,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzcwMzM1NQ==","user":{"login":"ncammarata","id":204989,"node_id":"MDQ6VXNlcjIwNDk4OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/204989?v=4","gravatar_id":"","url":"https://api.github.com/users/ncammarata","html_url":"https://github.com/ncammarata","followers_url":"https://api.github.com/users/ncammarata/followers","following_url":"https://api.github.com/users/ncammarata/following{/other_user}","gists_url":"https://api.github.com/users/ncammarata/gists{/gist_id}","starred_url":"https://api.github.com/users/ncammarata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncammarata/subscriptions","organizations_url":"https://api.github.com/users/ncammarata/orgs","repos_url":"https://api.github.com/users/ncammarata/repos","events_url":"https://api.github.com/users/ncammarata/events{/privacy}","received_events_url":"https://api.github.com/users/ncammarata/received_events","type":"User","site_admin":false},"created_at":"2018-08-16T22:27:08Z","updated_at":"2018-08-16T22:27:08Z","author_association":"NONE","body":"any luck on this?"}}
{"actor":{"display_login":"ncammarata"}}