mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 08:13:38 +00:00
Merge "Don't use deprecated jquery.hidpi module"
This commit is contained in:
commit
6ccf2a3568
|
@ -108,7 +108,6 @@
|
|||
"mediawiki.storage",
|
||||
"oojs",
|
||||
"jquery.fullscreen",
|
||||
"jquery.hidpi",
|
||||
"jquery.throttle-debounce",
|
||||
"jquery.color",
|
||||
"jquery.tipsy",
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
viewportHeight: $( window ).height(),
|
||||
canvasWidth: canvasDimensions.width,
|
||||
canvasHeight: canvasDimensions.height,
|
||||
devicePixelRatio: $.devicePixelRatio(),
|
||||
devicePixelRatio: window.devicePixelRatio || 1,
|
||||
imgWidth: imageWidths.cssWidth,
|
||||
imageAspectRatio: imageWidths.cssWidth / imageWidths.cssHeight,
|
||||
thumbWidth: imageWidths.real,
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
],
|
||||
|
||||
// screen pixel per CSS pixel
|
||||
devicePixelRatio: $.devicePixelRatio()
|
||||
devicePixelRatio: window.devicePixelRatio || 1
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue