Revert "Replace the navigation control by two controls, namely DragPan and MouseWheelZoom. DragPan is the map default drag control. MouseWheelZoom is the map default mouse wheel control."

This reverts commit c2a30f4ac4.
This commit is contained in:
Éric Lemoine
2012-07-13 15:37:39 +02:00
parent dd5182c55c
commit f34aa03109
9 changed files with 96 additions and 108 deletions

View File

@@ -61,12 +61,13 @@ describe('ol.handler.Drag', function() {
});
it('calls the default action on the default control', function() {
var control = {handleEvent: jasmine.createSpy()};
map.setDefaultDragControl(control);
var control = new ol.control.DefaultControl();
spyOn(control, 'defaultDrag');
map.setDefaultControl(control);
var handler = new ol.handler.Drag(map, {});
handler.dragger_.dispatchEvent({type: 'drag'});
expect(control.handleEvent).toHaveBeenCalled();
expect(control.defaultDrag).toHaveBeenCalled();
});
});
});