Skip to content

Commit

Permalink
CI run 3550 pushed to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 19, 2024
1 parent ae4fd21 commit b1f14bd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions demo/trunk/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,13 @@ function initSliders() {
const lgId = 'layerGroup' + i;
const slider = document.getElementById(lgId + '-slider');
if (slider) {
slider.style.display = '';
const lg = _app.getLayerGroupByDivId(lgId);
const ph = lg.getPositionHelper();
slider.max = ph.getMaximumScrollIndex();
const maxIndex = ph.getMaximumScrollIndex();
if (maxIndex !== 0) {
slider.max = maxIndex;
slider.style.display = '';
}
}
}
}
Expand Down

0 comments on commit b1f14bd

Please sign in to comment.