summaryrefslogtreecommitdiffstats
path: root/theme/javascript/core/navigation.js
diff options
context:
space:
mode:
Diffstat (limited to 'theme/javascript/core/navigation.js')
-rwxr-xr-xtheme/javascript/core/navigation.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/theme/javascript/core/navigation.js b/theme/javascript/core/navigation.js
index a4a5b43..c1766ab 100755
--- a/theme/javascript/core/navigation.js
+++ b/theme/javascript/core/navigation.js
@@ -105,7 +105,19 @@ define([
events.trigger("page.change");
};
+ var isLeftClickEvent = function (e) {
+ return e.button === 0;
+ };
+
+ var isModifiedEvent = function (e) {
+ return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
+ };
+
var handlePagination = function (e) {
+ if (isModifiedEvent(e) || !isLeftClickEvent(e)) {
+ return;
+ }
+
e.stopPropagation();
e.preventDefault();