Ticket #827: drag.3.patch
| File drag.3.patch, 1.1 kB (added by euzuro, 1 year ago) |
|---|
-
lib/OpenLayers/Handler/Drag.js
old new 210 210 * {Boolean} The handler was successfully activated. 211 211 */ 212 212 activate: function() { 213 var activated = false; 213 214 if(OpenLayers.Handler.prototype.activate.apply(this, arguments)) { 214 215 this.dragging = false; 215 return true; 216 } else { 217 return false; 218 } 216 activated = true; 217 } 218 return activated; 219 219 }, 220 220 221 221 /** … … 226 226 * {Boolean} The handler was successfully deactivated. 227 227 */ 228 228 deactivate: function() { 229 var deactivated = false; 229 230 if(OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) { 230 231 this.dragging = false; 231 return true; 232 } else { 233 return false; 234 } 232 deactivated = true; 233 } 234 return deactivated; 235 235 }, 236 236 237 237 CLASS_NAME: "OpenLayers.Handler.Drag"
