Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
final menus tweak -- no outjmol binding
  • Loading branch information
hansonr authored and hansonr committed Nov 21, 2018
commit 009b70dc3e50f38245f393a261ba80fae28e3600
12 changes: 6 additions & 6 deletions sources/net.sf.j2s.java.core/src/swingjs/jquery/j2sMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,12 @@ Swing.showMenu = function(menu, x, y) {
menu._visible = true;
menu.timestamp = System.currentTimeMillis$();
menu.dragBind(true);
menu.$ulTop.unbind('clickoutjsmol mousemoveoutjsmol');
if (!J2S._persistentMenu)
menu.$ulTop.bind('clickoutjsmol mousemoveoutjsmol', function(evspecial, target, ev) {
if (System.currentTimeMillis$() - menu.timestamp > 500)
Swing.hideMenu(menu);
});
// menu.$ulTop.unbind('clickoutjsmol mousemoveoutjsmol');
// if (!J2S._persistentMenu)
// menu.$ulTop.bind('clickoutjsmol mousemoveoutjsmol', function(evspecial, target, ev) {
// if (System.currentTimeMillis$() - menu.timestamp > 500)
// Swing.hideMenu(menu);
// });
menu.$ulTop.bind("contextmenu", function() {return false;});
}

Expand Down