Fix drawstart and drawend events when drawing a point
The previous behavior was to fire a `drawstart` on the first `mousemove`.
This commit is contained in:
@@ -168,10 +168,10 @@ describe('ol.interaction.Draw', function() {
|
||||
simulateEvent('pointermove', 10, 20);
|
||||
simulateEvent('pointerdown', 10, 20);
|
||||
simulateEvent('pointerup', 10, 20);
|
||||
simulateEvent('pointermove', 20, 20);
|
||||
expect(ds).to.be.called();
|
||||
expect(ds.callCount).to.be(2);
|
||||
expect(de).to.be.called();
|
||||
simulateEvent('pointermove', 20, 20);
|
||||
expect(ds.callCount).to.be(1);
|
||||
expect(de.callCount).to.be(1);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user