Merge pull request #18887 from KDSBrowne/bbb-18837
fix: Add Bounds to Presentation Zoom Changer
This commit is contained in:
commit
8388d55f80
@ -504,7 +504,13 @@ class Presentation extends PureComponent {
|
||||
}
|
||||
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user