3D footprint preview does not zoom

Bug #1794090 reported by Oliver
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
jean-pierre charras

Bug Description

3D model zoom feature is now missing from the 3D footprint viewer / preview window

Application: kicad
Version: (6.0.0-rc1-dev-449-g202b35bc9), release build
Libraries:
    wxWidgets 3.0.3
    libcurl/7.54.1 OpenSSL/1.0.2l zlib/1.2.11 libssh2/1.8.0 nghttp2/1.23.1 librtmp/2.3
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.3 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.60.0
    OpenCASCADE Community Edition: 6.8.0
    Curl: 7.54.1
    Compiler: GCC 7.1.0 with C++ ABI 1011

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Revision history for this message
Jeff Young (jeyjey) wrote :

It was never in the window. It can be found in the context menu (right-mouse-button menu).

Revision history for this message
Oliver (schrodingersgat) wrote :

I'm fairly confident it was - at least prior to the large refactor that has happened since the 5.x release.

I used to use this feature all the time - it was handy to be able to zoom using the mouse wheel while aligning a 3D model with a footprint.

Revision history for this message
Jeff Young (jeyjey) wrote :

@Oliver, mousewheel zoom is different. That's controlled by Preferences > Common > Use touchpad to pan. (You want it to be off for mousewheel or touchpad zooming; on for mousewheel or touchpad panning.)

Revision history for this message
Seth Hillbrand (sethh) wrote :

Hi Oliver-

I think perhaps you are thinking of the 3d viewer.

Here's an image from 2016 (http://kicad-pcb.org/img/post/footprint_3dpreview.png). It looks pretty much like what I see on 5.0.1-dev

Revision history for this message
Oliver (schrodingersgat) wrote :

Here's what it looks like for me:

https://i.imgur.com/l3Me0q2.png

In this window, mouse-wheel-zoom does not work independent of the state of the "use touchpad to pan" setting.

Revision history for this message
Seth Hillbrand (sethh) wrote :

Yes, that looks like the current setting. Does the wheel do anything for you? When I have touchpad to pan enabled, the wheel moves it up/down and I need to use Control+Wheel to zoom in/out. When the option is disabled, mine zooms without ctrl.

Maybe a windows issue? Anyone else on Windows seeing this?

Revision history for this message
Oliver (schrodingersgat) wrote :

The scroll-wheel does nothing, and it is not altered by the "use touchpad to pan" setting.

Revision history for this message
jean-pierre charras (jp-charras) wrote :

I confirm (at least on W7) the mouse wheel behavior is broken in 3D preview panel:

in 5.01 it is OK: mouse wheel = zoom in/out mouse wheel + Ctrl/Shift = Pan.

in 6.0 it is broken: mouse wheel does not work.

Moreover when opening the footprint dialog 3D tab, mouse wheel + Ctrl/Shift do something, but once an other widget has the focus, the 3D preview panel never get the focus when clicking on it and ignore all mouse wheel commands.

Revision history for this message
Jeff Young (jeyjey) wrote :

Ah crap. This sounds like a result of the steals focus bug.

In 5.0 when you click in a textctrl in the 3D preview in the Footprint Properties dialog and then move the mouse over the 3D canvas, the focus is lost from the textctrl. I fixed that by having the canvas not steal focus on mouse enter, but probably at the expense of this.

Is there some (straight-forward) way to have the dialog pass the wheel/touchpad events on to the 3D view?

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

I am not having this issue. Does the 3D model view mouse zoom behavior work correctly after clicking on (selecting) the view panel? I saw a similar issue with the footprint viewer in the symbol chooser dialog a long time ago. It doesn't do this any more. I'm not sure what changed although I did replace my mouse and bluetooth adaptor so maybe it's driver related.

Revision history for this message
jean-pierre charras (jp-charras) wrote :

On my W7 install, when left clicking on the 3D model panel preview, it never get the focus, so the mouse wheel and hotkeys never work.
(the other widgets that has the focus always receives the mouse wheel and key events)

However, some mouse events are working: right button click (the context menu is shown), and left and middle buttons drag works.

Revision history for this message
Oliver (schrodingersgat) wrote :

Jeff,

From a user perspective if the mouse is over the 3D model I would expect that a scroll wheel event would zoom the model, rather than changing the values in the most recently selected entry box. So it does sound like a focus issue as you say.

Revision history for this message
jean-pierre charras (jp-charras) wrote :

Looks like this is a Windows specific issue.

Changed in kicad:
status: New → Fix Committed
assignee: nobody → jean-pierre charras (jp-charras)
Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.