jquery - Qtip2 as contextmenu not showing on Google Chrome -


environment: - jquery 1.9.1 - qtip2: 2.0.1-35

i encounter weird issue opening of qtip2 binded right click (as contextmenu replacement, following official tutorial so).

on firefox, goes , contextmenu shows right-click target element. on chrome, reason unknown, have left click right click target qtip work.

my test environment

the weird thing works on both browsers fiddle: http://jsfiddle.net/paq7r/10/

with same source code.

<!doctype html> <html> <head>   <meta http-equiv="content-type" content="text/html; charset=utf-8">   <title> - jsfiddle demo</title>       <script src="jquery/jquery-1.9.1.js"></script>       <script type='text/javascript' src="jquery/jquery.qtip.js"></script>       <link rel="stylesheet" type="text/css" href="css/jquery.qtip.css">   <style type='text/css'>         ul#candmenu {             display: none;         }   </style> <script type='text/javascript'> $(document).ready( function() {     $(document).on("mousedown", ".test", function(event) {         $(this).qtip({             content: {                 text: $("#candmenu").clone()             },             show: {                 event: "mouseup",                 ready: true,                  solo: true             },             hide: {                 event: "unfocus" // si qqchose d autre que le tooltip est cliqué             },             position: {                 my: "left top",                 target: "mouse", // position click was...                 adjust: { mouse: false }, // ...but dont follow mouse                 viewport: $(window) // empêche le débordement de la fenêtre             },             events: {                 show: function(eventshow, api) {                     if(eventshow.originalevent.which !== 3) {                         eventshow.preventdefault();                     }                 }             }         }, event);     }).bind("contextmenu", function() { return false; }); });  </script> </head> <body>   <a href="javascript:;" class="test">test right click</a><br />   <a href="javascript:;">no-test</a>  <table border="1" width="100%">     <tr class="test">         <td>prem</td>         <td>seco</td>         <td>third</td>     </tr>     <tr class="test">         <td>prem</td>         <td>seco</td>         <td>third</td>     </tr> </table> <ul id="candmenu">     <li class="event separator"><a href="javascript:;">Événements<span class="holdctrl"></span></a></li>         <li class="edit"><a href="javascript:;">infos du candidat<span class="holdctrl"></span></a></li>         <li class="permis"><a href="javascript:;">demande de permis<span class="holdctrl"></span></a></li>         <li class="prod"><a href="javascript:;">produits<span class="holdctrl"></span></a></li>         <li class="regle"><a href="javascript:;">règlements<span class="holdctrl"></span></a></li>         <li class="form"><a href="javascript:;">formation<span class="holdctrl"></span></a></li> </ul> </body> </html> 

i tried in non ssl environment , same strange behaviour. can't find if there's trick on fiddle environment or misconfiguration on server explain difference.

this solved re-installing chrome after deleting files related in user profile.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -