Browse Source

Do not disable right-click #213

Tobias Reich 10 years ago
parent
commit
7d37bf8ebb
1 changed files with 2 additions and 5 deletions
  1. 2 5
      src/scripts/init.js

+ 2 - 5
src/scripts/init.js

@@ -8,12 +8,9 @@ $(document).ready(function() {
 	/* Event Name */
 	var eventName = (mobileBrowser()) ? 'touchend' : 'click';
 
-	/* Disable ContextMenu */
-	$(document).bind('contextmenu', function(e) { e.preventDefault() });
-
 	/* Multiselect */
-	$('#content')	.on('mousedown',	multiselect.show);
-	$(document)		.on('mouseup',		multiselect.getSelection);
+	$('#content')	.on('mousedown', 	function(e) { if (e.which===1) multiselect.show(e) });
+	$(document)		.on('mouseup',		function(e) { if (e.which===1) multiselect.getSelection(e) });
 
 	/* Header */
 	header.dom('#title').on(eventName, function(e) {