ensure default can be prevented
This commit is contained in:
parent
4c5b15d0b9
commit
5e85f02eb1
1 changed files with 2 additions and 2 deletions
|
@ -3278,7 +3278,7 @@
|
|||
// If the input resulted in a triggered action we should prevent
|
||||
// the browsers default behavior
|
||||
if( triggered ) {
|
||||
event.preventDefault();
|
||||
event.preventDefault && event.preventDefault();
|
||||
}
|
||||
// ESC or O key
|
||||
else if ( ( event.keyCode === 27 || event.keyCode === 79 ) && features.transforms3d ) {
|
||||
|
@ -3289,7 +3289,7 @@
|
|||
toggleOverview();
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
event.preventDefault && event.preventDefault();
|
||||
}
|
||||
|
||||
// If auto-sliding is enabled we need to cue up
|
||||
|
|
Loading…
Reference in a new issue