Merge pull request #18887 from KDSBrowne/bbb-18837

fix: Add Bounds to Presentation Zoom Changer
This commit is contained in:
Ramón Souza 2023-10-06 15:08:17 -03:00 committed by GitHub
commit 8388d55f80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -504,7 +504,13 @@ class Presentation extends PureComponent {
} }
zoomChanger(zoom) { zoomChanger(zoom) {
this.setState({ zoom }); let boundZoom = parseInt(zoom);
if (boundZoom < HUNDRED_PERCENT) {
boundZoom = HUNDRED_PERCENT
} else if (boundZoom > MAX_PERCENT) {
boundZoom = MAX_PERCENT
}
this.setState({ zoom: boundZoom });
} }
fitToWidthHandler() { fitToWidthHandler() {