Magic mouse smart zoom not available on trackpad
I think you're looking for Smart Zoom. 

Unless you've changed it from the default, tapping with 2 fingers will zoom in and out. 


See this Apple page for more options and gestures on the trackpad.