forked from 0x2620/pandora
fix pdf zoom
This commit is contained in:
parent
652df88342
commit
e1967e96bc
1 changed files with 6 additions and 5 deletions
|
@ -42,15 +42,16 @@ function getVideoOverlay(page) {
|
||||||
video = links.filter(function(embed) {
|
video = links.filter(function(embed) {
|
||||||
return embed.id == id;
|
return embed.id == id;
|
||||||
})[0],
|
})[0],
|
||||||
$interface, $playButton, $editButton;
|
$interface, $playButton, $editButton,
|
||||||
|
pixelRatio = window.devicePixelRatio || 1;
|
||||||
if (editable || video) {
|
if (editable || video) {
|
||||||
$interface = Ox.$('<div>')
|
$interface = Ox.$('<div>')
|
||||||
.addClass('interface')
|
.addClass('interface')
|
||||||
.css({
|
.css({
|
||||||
left: image.left + 'px',
|
left: (image.left / pixelRatio) + 'px',
|
||||||
top: image.top + 'px',
|
top: (image.top / pixelRatio) + 'px',
|
||||||
width: image.width + 'px',
|
width: (image.width / pixelRatio) + 'px',
|
||||||
height: image.height + 'px'
|
height: (image.height / pixelRatio) + 'px'
|
||||||
});
|
});
|
||||||
$playButton = Ox.$('<img>')
|
$playButton = Ox.$('<img>')
|
||||||
.addClass('button playButton')
|
.addClass('button playButton')
|
||||||
|
|
Loading…
Reference in a new issue