none
Event issue with FireFox 10.x

    問題

  • I apologize if this has been covered already, but I could not find an answer when searching.

    I am coming across an issue with the click and double click events, specifically in FireFox v10.x.  It seems that when double clicking on the map, both events fire.  In IE 9, only the double click event fires (as expected).

    Has anyone come across this issue?  Any suggestions?

    Thanks,

    Mike Garza
    http://www.garzilla.net/vemaps

    2012年3月1日 下午 04:56

解答

  • There may be issue in firing click vs double click in certain browsers.
    One of the work around would be to delay the execution of function in click event & check for click vs dblclick in that function. something as below:

    function click(e) { dblclick = false; clickEvent = e; setTimeout("displayInfo()", 200); } function dblClick(e) { dblclick = true; dblClickEvent = e; displayInfo(); } function displayInfo() { // logic to execute single or double click }

    Hope it helps!



    MSFT
    Hemant Goyal

    2012年3月2日 下午 11:33

所有回覆

  • There may be issue in firing click vs double click in certain browsers.
    One of the work around would be to delay the execution of function in click event & check for click vs dblclick in that function. something as below:

    function click(e) { dblclick = false; clickEvent = e; setTimeout("displayInfo()", 200); } function dblClick(e) { dblclick = true; dblClickEvent = e; displayInfo(); } function displayInfo() { // logic to execute single or double click }

    Hope it helps!



    MSFT
    Hemant Goyal

    2012年3月2日 下午 11:33
  • Hemant - Thanks for suggestion. 

    Mike
    http://www.garzilla.net/vemaps

    2012年3月4日 下午 04:49