openlayers/openlayers — pull request #228 by jorix (2012-02-16 22:03:26+00:00)
Title: Handler.Drag bug: drag and simultaneously press the right click

If while dragging is pressed simultaneously right click: no cursor restored and `document.onselectstart == OpenLayers.Function.False`

For example in [example.html](http://www.openlayers.org/dev/examples/example.html):

* keep left mouse button.
* press right mouse button.
* release the left mouse button and then the right button.
* IE, Chrome & Safari: try by selecting a text out of the map, oops! does not work.
* FF, Chrome & Safari: press any option from the popup menu. Oops! the cursor is still dragging.

**Tickets reporting the bug**: [3141](http://trac.osgeo.org/openlayers/ticket/3141), [3193](http://trac.osgeo.org/openlayers/ticket/3193) and [3523](http://trac.osgeo.org/openlayers/ticket/3523)

Proposal:
------------
Trigger "up" by pressing the right click while dragging.

Implementation Details:
----------------------------------

Callbacks "up" and "done" receiving a second argument indicating the type ("up", "out" or "down"), to distinguish the reason of the trigger.

All tests of controls and handlers work correctly.