Fix Drag interaction, works with modify now

This commit is contained in:
Alexandre Dubé
2015-03-26 08:36:24 -04:00
parent d92917ac89
commit d1c3dc51ad

View File

@@ -179,7 +179,8 @@ ol.interaction.Snap.handleDownAndUpEvent = function(evt) {
*/
ol.interaction.Snap.handleEvent = function(mapBrowserEvent) {
var pass = true;
if (mapBrowserEvent.type === ol.MapBrowserEvent.EventType.POINTERMOVE) {
if (mapBrowserEvent.type === ol.MapBrowserEvent.EventType.POINTERDRAG ||
mapBrowserEvent.type === ol.MapBrowserEvent.EventType.POINTERMOVE) {
pass = this.handleEvent_(mapBrowserEvent);
}
return ol.interaction.Pointer.handleEvent.call(this, mapBrowserEvent) && pass;