I have conditional logic that prevents code from firing if the Viewport is being manipulated but while using MouseWheel to zoom in/out unfortunately the logic still fires as this is not picked up by the InDynamicViewChange method.
The logic creates some “fancy preview display stuff” that needs to be dynamic based on the view but I don’t want it to fire while the user is manipulating the view, only once the view has “settled”.
We don’t have any logic built in to know that another mouse wheel event is coming while processing the current mouse wheel event. InDynamicViewChange is not set to true during mouse wheel events
This involves processing the WM_MOUSEWHEEL event. There’s probably a way to hook the RhinoView’s event loop, but I haven’t looked into this for quite a while. I’ve looked into this issue of trying to figure out if another wheel event is coming as I would have set InDynamicViewChange to true, but wasn’t able to make it work. It might be better to understand what “fancy preview display stuff” is and see if there are ways to optimize that.