Skip to content

How to zoomIn/zoomOut with onWheel gesture? #476

Answered by dbismut
dmagunov asked this question in Q&A
Discussion options

You must be logged in to vote

onPinch kinda supports wheel events out of the box with the control key pressed, just so you know.

Otherwise have a look at the source code here https://github.com/pmndrs/use-gesture/blob/main/packages/core/src/engines/PinchEngine.ts#L267

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@dmagunov
Comment options

@dbismut
Comment options

@dmagunov
Comment options

@dbismut
Comment options

@dmagunov
Comment options

Answer selected by dmagunov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants