mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Move scale out of pdf.js
This commit is contained in:
parent
18172c1b4d
commit
c2eaa55cd9
2 changed files with 8 additions and 6 deletions
|
@ -166,7 +166,7 @@ var PageView = function(container, content, id, width, height, stats) {
|
|||
};
|
||||
|
||||
function setupLinks(canvas, content, scale) {
|
||||
var links = content.getLinks(scale);
|
||||
var links = content.getLinks();
|
||||
var currentLink = null;
|
||||
if (links.length > 0)
|
||||
{
|
||||
|
@ -177,6 +177,8 @@ var PageView = function(container, content, id, width, height, stats) {
|
|||
x -= p.offsetLeft;
|
||||
y -= p.offsetTop;
|
||||
}
|
||||
x /= scale;
|
||||
y /= scale;
|
||||
for (var i = 0; i < links.length; i++) {
|
||||
var link = links[i];
|
||||
if (!link.url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue