restrict pan tool shortcut to presenter only
This commit is contained in:
parent
f1ba37fc2f
commit
554c792345
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user