[OpenLayers-Users] right mouse drag?
Ivan Grcic
igrcic at gmail.com
Wed Feb 3 10:05:52 EST 2010
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
More information about the Users
mailing list