Move handling of the 'custom' scale value from pdf_viewer.js to viewer.js
The special handling of the 'custom' scale value is only relevant for the `scaleSelect` dropdown in the standard viewer, hence I think that it should be placed in `viewer.js` instead.
This commit is contained in:
parent
d3e90cf825
commit
93d82e21d5
2 changed files with 3 additions and 3 deletions
|
@ -1440,6 +1440,9 @@ function webViewerInitialized() {
|
|||
});
|
||||
|
||||
document.getElementById('scaleSelect').addEventListener('change', function() {
|
||||
if (this.value === 'custom') {
|
||||
return;
|
||||
}
|
||||
PDFViewerApplication.pdfViewer.currentScaleValue = this.value;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue