Skip to content

Commit 4652ea9

Browse files
committed
close menu on tablets too
1 parent 3f5d061 commit 4652ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.contextmenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
if( event.which === $.ui.keyCode.ESCAPE ){
8181
self._closeMenu();
8282
}
83-
}).bind("mousedown.contextmenu", function(event){
83+
}).bind("mousedown.contextmenu touchstart.contextmenu", function(event){
8484
// Close menu when clicked outside menu
8585
if( !$(event.target).closest(".ui-menu-item").length ){
8686
self._closeMenu();

0 commit comments

Comments
 (0)