I couldn't get Yuri's version of this to work sadly, so through some forum searching and vibe coding this should work upon nuke startup.
It preserves all normal mouse behavior (including MMB drag pan) and only blocks the MMB click zoom/zoom-to-fit in the Node Graph. It retries installation until Nuke’s Qt UI is ready, then distinguishes click vs drag using a small cursor-movement threshold.
Add the py file to your .nuke and in our menu.py add
import disable_mmb_zoom
Let me know if you encounter bugs.
Comments