#905 - give the drag handler back its start property - controls use but do not modify these handler properties
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3906 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -40,10 +40,16 @@ OpenLayers.Handler.Drag = OpenLayers.Class(OpenLayers.Handler, {
|
||||
|
||||
/**
|
||||
* Property: last
|
||||
* {<OpenLayers.Pixel>}
|
||||
* {<OpenLayers.Pixel>} The last pixel location of the drag.
|
||||
*/
|
||||
last: null,
|
||||
|
||||
/**
|
||||
* Property: start
|
||||
* {<OpenLayers.Pixel>} The first pixel location of the drag.
|
||||
*/
|
||||
start: null,
|
||||
|
||||
/**
|
||||
* Property: oldOnselectstart
|
||||
* {Function}
|
||||
@@ -90,6 +96,7 @@ OpenLayers.Handler.Drag = OpenLayers.Class(OpenLayers.Handler, {
|
||||
if (this.checkModifiers(evt) && OpenLayers.Event.isLeftClick(evt)) {
|
||||
this.started = true;
|
||||
this.dragging = false;
|
||||
this.start = evt.xy;
|
||||
this.last = evt.xy;
|
||||
// TBD replace with CSS classes
|
||||
this.map.div.style.cursor = "move";
|
||||
|
||||
Reference in New Issue
Block a user