3dviewer zoom not limited with Use touchpad to pan
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Undecided
|
xzcvczx |
Bug Description
If you use touchpad to pan and then use pinch-to-zoom on osx the zoom-out is not limited unlike with normal mousewheel zoom. This causes the model to disappear briefly and then if you continue to zoom out the board will reappear rotated 180 degrees around the up/down (Y) axis (not sure if thats what 3dviewer calls y but i do).
The zoom level required for this to happen is well beyond what you can even get near to zooming out to with the mousewheel zoom.
Application: kicad
Version: (2016-09-16 revision e8b2444)-master, release build
Libraries: wxWidgets 3.0.2
Platform: Mac OS X (Darwin 15.6.0 x86_64), 64 bit, Little endian, wxMac
- Build Info -
wxWidgets: 3.0.2 (UTF-8,STL containers,
Boost: 1.61.0
Curl: 7.43.0
KiCad - Compiler: Clang 7.3.0 with C++ ABI 1002
Settings: USE_WX_
tags: | added: 3d-viewer osx |
Changed in kicad: | |
assignee: | nobody → Mario Luzeiro (mrluzeiro) |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
Just checked, the zoom function is the same, the parameter value may be different and causing the issue.
I never tested that feature before (no Mac access)
The function:
bool CCAMERA::ZoomIn( float aFactor )
must be add a check / validation of input aFactor as there is any at moment.
Could someone with MAC debug that function?
I think in the addition, this lines can be added:
if( m_zoom >= MAX_ZOOM )
m_zoom = MAX_ZOOM;
after line "m_zoom /= aFactor;"
aFactor should be checked for very small numbers too.
I still dont have setuped /learned how to contribute to this new GIT platform.