[ka-Map-dev] [Bug 1679] New: Right click - KAMAP_CONTEXT_MENU

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Sun Mar 11 21:28:24 EST 2007


           Summary: Right click - KAMAP_CONTEXT_MENU
           Product: ka-Map
           Version: 1.0
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: core
        AssignedTo: ka-map-dev at lists.maptools.org
        ReportedBy: dave at smartrak.co.nz

The only triggerEvent for KAMAP_CONTEXT_MENU is in kaMap_onmousemove, which is
only called when a user right clicks and drags the map.
It seems to me that is should instead be in kaMap_onmousedown.

The following is a patch to change this behaviour:

Index: htdocs/kaMap.js
RCS file: /cvs/maptools/cvsroot/ka-map/htdocs/kaMap.js,v
retrieving revision 1.100
diff -r1.100 kaMap.js
<     if (e.button==2) {
<         this.kaMap.triggerEvent( KAMAP_CONTEXT_MENU );
<     }
>     e = (e)?e:((event)?event:null);
>     if (e.button==2) {
>         this.kaMap.triggerEvent( KAMAP_CONTEXT_MENU );
>     }

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.

More information about the ka-Map-dev mailing list