Reverting unintentional changes in r9234. Meant to just change the controls example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9235 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -177,9 +177,8 @@ OpenLayers.Handler.Drag = OpenLayers.Class(OpenLayers.Handler, {
|
||||
this.started = true;
|
||||
this.start = evt.xy;
|
||||
this.last = evt.xy;
|
||||
OpenLayers.Element.addClass(
|
||||
this.map.div, "olDragDown"
|
||||
);
|
||||
// TBD replace with CSS classes
|
||||
this.map.div.style.cursor = "move";
|
||||
this.down(evt);
|
||||
this.callback("down", [evt.xy]);
|
||||
OpenLayers.Event.stop(evt);
|
||||
@@ -248,9 +247,8 @@ OpenLayers.Handler.Drag = OpenLayers.Class(OpenLayers.Handler, {
|
||||
var dragged = (this.start != this.last);
|
||||
this.started = false;
|
||||
this.dragging = false;
|
||||
OpenLayers.Element.removeClass(
|
||||
this.map.div, "olDragDown"
|
||||
);
|
||||
// TBD replace with CSS classes
|
||||
this.map.div.style.cursor = "";
|
||||
this.up(evt);
|
||||
this.callback("up", [evt.xy]);
|
||||
if(dragged) {
|
||||
@@ -276,9 +274,8 @@ OpenLayers.Handler.Drag = OpenLayers.Class(OpenLayers.Handler, {
|
||||
var dragged = (this.start != this.last);
|
||||
this.started = false;
|
||||
this.dragging = false;
|
||||
OpenLayers.Element.removeClass(
|
||||
this.map.div, "olDragDown"
|
||||
);
|
||||
// TBD replace with CSS classes
|
||||
this.map.div.style.cursor = "";
|
||||
this.out(evt);
|
||||
this.callback("out", []);
|
||||
if(dragged) {
|
||||
@@ -339,9 +336,6 @@ OpenLayers.Handler.Drag = OpenLayers.Class(OpenLayers.Handler, {
|
||||
this.start = null;
|
||||
this.last = null;
|
||||
deactivated = true;
|
||||
OpenLayers.Element.removeClass(
|
||||
this.map.div, "olDragDown"
|
||||
);
|
||||
}
|
||||
return deactivated;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user