sydcanem / bootstrap-contextmenu

Context menu plugin for Twitter's Bootstrap framework
http://sydcanem.com/bootstrap-contextmenu/
645 stars 193 forks source link

wraped e.stopPropagation() to try catch. #96

Closed nlapshinrocks closed 8 years ago

nlapshinrocks commented 8 years ago
  1. Wrapped e.soptPropagetion() in try catch. In FF if you press right mouse button when context menu is open you get an error.
  2. Added option to listen left mouse button click. if you want to show context menu also on left mouse button click then just add option onclick:true;

It is usefull if you make special button for touch screens to show context menu.

$('.context').contextmenu({ onclick : true })

sydcanem commented 8 years ago

Fixed by 78d4bfd46889c127e3770e00f477a697aa258229