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