Trackpad mapping to mouse wheel

I have an application where the mouse wheel event is used for zooming in and out of a view in a canvas.
This works perfectly with a wheel mouse
As well, holding the mouse left button down while moving the mouse will drag the view left/right/up/down

The mouse down/drag works with the trackpad. Nevertheless two-finger drag seems more intuitive. That’s how I drag on my browser.

With the trackpad, one expects that pinching will change zoom. That “sort of” works on zoom in. It doesn’t seem to work at all for zoom out.

Also, two finger drag zooms in. So apparently that is generating wheel events also. That is very counter-intuitive. In particular because you cannot zoom out.

I’m not finding any documentation about how the trackpad relates to the mouse events.

TIA
Tom

I think you will need declares to properly catch trackpad pinch events.

The official equivalent to mouse wheel is two fingers drag. But that could change with each trackpad implementation.

https://msdn.microsoft.com/en-us/library/windows/hardware/dn614021(v=vs.85).aspx?f=255&MSPPError=-2147217396

But pinch is also used for zoom…