Handling mousewheel zoom

Hi community members,

I cobbled together a little map input with zoom and pan a while ago, and want to start using it. One issue I can’t figure out (largely because I cribbed the nice bits from others) is a problem with zooming with the mouse wheel: when we do so, I’d really like to not do any rotation, I.e. ignore the x and y that come with the event (and only do these when we click and drag). Can anyone give me a clue as to how to filter such events before they reach the actual zoom handler (which I think can’t work out the event source by that point)?

Hello,
I think the two reference notebooks for panning and zooming a map are

In the future please open a GitHub discussion instead, as we’re trying to move the conversations about D3 to a central place.

Indeed, the second notebook was the one I forked! Ok I’ll open a GitHub discussion.

I see they share commonality so I should be able to swap the Versor behaviour in. Thanks!