Skip to content

Commit

Permalink
giving possibility to maintain multiple selection on mouseHouver
Browse files Browse the repository at this point in the history
Copy of the code of onClick in onMouseHover regarding multipleSelection in order for it not to be set systematically to false.
I would have personnally removed this line as I dont see why mousehover should impact multipleSelection but this way I'm sure anything remains possible.
  • Loading branch information
cyrielleC committed Aug 16, 2023
1 parent 8c35632 commit 7637833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MVTSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class MVTSource {
}

onMouseHover(event, callbackFunction, options) {
this._multipleSelection = false;
this._multipleSelection = (options && options.multipleSelection) || false;
options = this._getMouseOptions(options, true);
this._mouseEvent(event, callbackFunction, options);
}
Expand Down

0 comments on commit 7637833

Please sign in to comment.