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:
@@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user