swisnl/jQuery-contextMenu

Reposition and open-close behaviour after scrolling document

thanatos801 opened this issue · 3 comments

Hi,

While testing your plug-in I found out a "strange" behaviour :

Normal behaviour : A right click on a context menu trigger displays the context menu or reposition it. If more context menu triggers are present clicking on one when another is displayed the displayed one is closed and the other one is displayed. So far everything is ok.

Strange behaviour : If you scroll down up to +/− 50 pixel and test again the context menu behaves differently. A right click on a context menu trigger, when it is already displayed, does not reposition it, instead it is closed. If more context menus triggers are present clicking on one when another is displayed does only close the displayed one but not open the other one. To reposition one context menu or to open another one I have to click a second time on the trigger.

This can be reproduced on your own demo page at least for both examples :
Simple Context Menu and Adding new Context Menu Triggers

Tested and reproducible on FF14 , IE8, IE9, Chrome21, Safari5 and Opera11.

Could not figure out how to fix it nor if it is due to jquery or to your plug-in.

Thanks in advance.

Nice catch!

I'll investigate this. It'll take me some time to get to it though…

Problem solved and released with v1.5.23

Works perfectly now ! - Thank you !