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 <[email protected]> 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
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>
--
Ivan Grcic
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users