mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 14:53:24 +02:00
only allow right-click for buttons
This commit is contained in:
parent
fda3ec87ce
commit
33db8e1f24
1 changed files with 4 additions and 0 deletions
|
@ -118,6 +118,10 @@
|
|||
}
|
||||
|
||||
function clickedOnOverlay(overlayID, event) {
|
||||
if (event.isRightButton) {
|
||||
// don't allow right-clicks.
|
||||
return;
|
||||
}
|
||||
if (tryAgainImage === overlayID) {
|
||||
location.goToLastAddress();
|
||||
} else if (backImage === overlayID) {
|
||||
|
|
Loading…
Reference in a new issue