restrict pan tool shortcut to presenter only

This commit is contained in:
KDSBrowne 2022-08-17 15:36:56 +00:00
parent f1ba37fc2f
commit 554c792345

View File

@ -129,7 +129,8 @@ class Presentation extends PureComponent {
}
handlePanShortcut(e) {
if (e.keyCode === SPACE) {
const { userIsPresenter } = this.props;
if (e.keyCode === SPACE && userIsPresenter) {
switch(e.type) {
case 'keyup':
return this.state.isPanning && this.setIsPanning();