Print at Dec 18, 2025, 12:45:36 PM

Posted by Daniels118 at Nov 28, 2021, 11:51:49 AM
Re: Pan tool in 3D and 2D view?
This sounds very odd, at first I thinked about a failure with the reflection code, but if there are no previous exceptions it is more likely this is due to a race condition. Maybe your pc is much faster than mine and this causes the plugin gets initialized before the UI is ready, so the plugin gets a null reference instead of the component it is looking for. This could also be the reason why the scroll didn't work for you in the previous releases (in fact the line of code throwing the exception is responsible to retrive the 3D view to bind the mouse wheel event custom handler), but the application freezes just with the last release because I've rearranged the code.
I have built a new release which should handle this case, you can download it here:
https://daniels118.altervista.org/temp/Pan3dView-1.3.1.sh3p
Please let me know if this solves the problem so I will post it on the contribution page.

Thank you