Link interaction
This commit is contained in:
@@ -155,7 +155,11 @@ class MouseWheelZoom extends Interaction {
|
||||
*/
|
||||
endInteraction_() {
|
||||
this.trackpadTimeoutId_ = undefined;
|
||||
const view = this.getMap().getView();
|
||||
const map = this.getMap();
|
||||
if (!map) {
|
||||
return;
|
||||
}
|
||||
const view = map.getView();
|
||||
view.endInteraction(
|
||||
undefined,
|
||||
this.lastDelta_ ? (this.lastDelta_ > 0 ? 1 : -1) : 0,
|
||||
|
||||
Reference in New Issue
Block a user