only allow right-click for buttons

This commit is contained in:
Wayne Chen 2018-09-26 16:40:43 -07:00
parent fda3ec87ce
commit 33db8e1f24

View file

@ -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) {