mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-07-23 00:34:55 +00:00
Test disabling DoubleClickZoom via doubleClickZoom=false (#9739)
This commit is contained in:
@ -58,4 +58,20 @@ describe('Map.DoubleClickZoom', () => {
|
||||
UIEventSimulator.fire('dblclick', container);
|
||||
});
|
||||
|
||||
it('can be disabled using doubleClickZoom: false', (done) => {
|
||||
map.remove();
|
||||
map = new Map(container, {
|
||||
center: [0, 0],
|
||||
zoom: 3,
|
||||
doubleClickZoom: false,
|
||||
zoomAnimation: false
|
||||
});
|
||||
|
||||
UIEventSimulator.fire('dblclick', container);
|
||||
|
||||
expect(map.getZoom()).to.eql(3);
|
||||
|
||||
done();
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user