fritzing / fritzing-app

Fritzing desktop application
http://fritzing.org
Other
3.97k stars 826 forks source link

Part editor has strange default zoom and lacks Ctrl+wheel shortcut #2286

Open davidperrenoud opened 10 years ago

davidperrenoud commented 10 years ago

From jerome.b...@gmail.com on November 01, 2012 11:30:16

Fritzing uses ctrl+wheel for zoom, but in the part editor this does not work. Tested windows/0.7.10b and linux/current svn.

When editing custom parts, zoom says "2000%" while the real display is incoherent with this value (the component is very small in the center, see attached image).

Attachment: bug-zoom-part-editor.png

Original issue: http://code.google.com/p/fritzing/issues/detail?id=2286

davidperrenoud commented 10 years ago

From irasc...@gmail.com on November 01, 2012 08:49:21

Yes, because we use wheel events to navigate through the svg tree.

The zoom issue is also known--usually this will repair itself if you click on one of the zoom slider buttons.

Status: Accepted
Owner: irasc...@gmail.com
Labels: -Priority-Medium Priority-Low

davidperrenoud commented 10 years ago

From jerome.b...@gmail.com on November 02, 2012 02:33:17

Thank you for the explanation. Indeed it works like you say when the first thing you do is to click on the zoom buttons. But if you do not know that, if you first click somewhere on the screen, move a little bit the view involuntarily by using the usual zoom shortcut, try to use the keyboard shortcuts, it sometimes (not always, I do not have yet a reproducible procedure to show) makes the zoom messy. When there is a user action on the window, it somehow validates the current position (which is not centered), and then and zooming to 2000× (you have no other choice when pressing the +/- buttons or shortcuts for the first time) will make the part go out of the view. Then you need to zoom out, center the design manually, then zoom in again. Which is cumbersome because you don't have the ctrl-wheel, which zooms around the pointer, while the +/- just zooms around the center, which makes it more difficult to fit the part in the view. And also because the "Zoom in window" menu item does not work.

davidperrenoud commented 10 years ago

From jerome.b...@gmail.com on December 08, 2012 04:05:58

r6688 - use shift-wheel to navigate the svg in the parts editor. wheel without shift does the normal zoom or pan.

The zoom issue is still here - sometimes - but this revision makes it easier to correct it.

davidperrenoud commented 10 years ago

From irasc...@gmail.com on December 08, 2012 06:32:01

Thanks for the feedback. We should have used the shift-wheel to begin with.