Fix for Feature handler uses getFeatureFromEvent on mousemove even without
hover callbacks; r=ahocevar (Closes #1655) This means that On the SelectFeature control hover can no longer be set on the SelectFeature control after the control has been initialized: must be passed at initialize time. Example has been updated. git-svn-id: http://svn.openlayers.org/trunk/openlayers@7682 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -176,6 +176,9 @@ OpenLayers.Handler.Feature = OpenLayers.Class(OpenLayers.Handler, {
|
||||
* {Boolean}
|
||||
*/
|
||||
mousemove: function(evt) {
|
||||
if (!this.callbacks['over'] && !this.callbacks['out']) {
|
||||
return false;
|
||||
}
|
||||
this.handle(evt);
|
||||
return true;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user