// Bail out on unwanted map moves, but not zoom or keyboard events.
if (aEvent.type.indexOf("mouse") === 0 || aEvent.type.indexOf("touch") === 0) {
// Bail out if this is neither a touch nor left-click.
// Bail out on unwanted map moves, but not zoom or keyboard events.
if (aEvent.type.indexOf("mouse") === 0 || aEvent.type.indexOf("touch") === 0) {
// Bail out if this is neither a touch nor left-click.