AFAIK, there's no fltk event for the pinch-zoom actions yet, though somebody (maybe Mike Sweet?) did post notes about that a while back, so if you can find those posts, they might have some clues... might have been in fltk.coredev rather than this list, though, not sure.
FWIW, my limited understanding of this is that it is tricky, because WinXX, macOS, Linux and Wayland all handle this in different (and not very compatible!) ways, so coming up with some sort of generic wrapper that fltk can use is "challenging"...
As it stands, you may be bale to use some platform specific code on your Linux build and have that post events into the fltk event stream, but even then I'd be cautious that the solution might turn out to be X11 or even WM specific...
The short answer to this would have been: I do not know.