Permalink
Browse files

Disable accidental context menus over lyrics.

  • Loading branch information...
1 parent 83d6f0d commit 85ad548e2b542e80bf94f3a8a91af40c89bbe1f1 @miracle2k committed May 17, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 app/js/lyrics.js
View
@@ -233,6 +233,11 @@ LyricsBox = function(selector, audio, lyrics) {
function() { container.addClass('playing') });
audio.addEventListener('pause',
function() { container.removeClass('playing') });
+
+ // Disable right click on the whole box. The word have their own
+ // handlers, but accidental clicking next to a word shouldn't
+ // interrupt with a context menu.
+ this.container.on('contextmenu', function() { return false; });
};
/**

0 comments on commit 85ad548

Please sign in to comment.