[OpenLayers-Users] right mouse drag?

Ivan Grcic igrcic at gmail.com
Wed Feb 3 10:25:43 EST 2010


its is supposed to be OpenLayers.Event.isLeftClikc(evt) instead of Middle

On Wed, Feb 3, 2010 at 4:05 PM, Ivan Grcic <igrcic at gmail.com> wrote:
> Yes I managed to do it... I'll try to open a ticket for it...
>
> here's some tip... DragPan controls uses OpenLayers.Handler.Drag which
> has leftClick hardcoded in it:
>
> mousedown: function (evt) {
>        var propagate = true;
>        this.dragging = false;
>        if (this.checkModifiers(evt) && OpenLayers.Event.isMiddleClick(evt)) {
> ....
>
> We should make it optional so uses can make Drag handlers with left,
> right or middle click (ive also managed to do it)
>
> Again, ill try to open ticket this weekend..
>
> cheers
>
> On Tue, Feb 2, 2010 at 9:38 PM, Wendell Turner <wendell at enflight.com> wrote:
>> Is there an OpenLayers way to capture right mouse drag
>> events?
>>
>> map.div.oncontextmenu works fine for right mouse clicks, and
>> OpenLayers.Handler.Drag seems to only work on the left mouse
>> button.  Is there some way to combine those?
>>
>> Thanks,
>>
>> Wendell
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>
>
>
> --
> Ivan Grcic
>



-- 
Ivan Grcic



More information about the Users mailing list