On 12/19/2017 10:45 PM, Jon Evans wrote: > I would file a bug report for this. > > There is actually an underlying problem that is going to keep causing > little things like this to pop up... > The GAL / tool framework doesn't have a transform matrix applied between > the user inputs and the world coordinate system. > > When the Flip Board view is active, the world coordinates are flipped at > the output stage (when being sent to the renderer). > But, anything that modifies the view in world space (like the scrollbar, > but also actions like aligning objects to each other, moving them around > with the cursor, etc) is going to be backwards. > This is currently solved in the align tool and > PCBNEW_CONTROL::CursorControl by checking for IsMirroredX and flipping > the coordinates around in that case. > > A better approach would be to insert some kind of transform matrix for > actions that are supposed to take place from the perspective of the > "camera", so that "right" is always "right" and "left" is always "left". > Not only would this eliminate a whole category of bugs, but it would > allow for easy addition of additional view options besides "flip board" > -- some advanced tools have the ability to view the board at arbitrary > 90-degree rotations as well, which is a great feature.
This certainly would be a cleaner solution to the problem than adding code to every tool and/or object to check if the board view is flipped. > > (it would even open the door to editing the board in 3D, since you could > transform coordinates in arbitrary 3D space into the appropriate > movements in the 2D board world coordinates) I'm not sure how this would work in practice but it would be a really cool feature. > > -Jon > > On Tue, Dec 19, 2017 at 10:30 PM, Henner Zeller <h.zel...@acm.org > <mailto:h.zel...@acm.org>> wrote: > > Hi, > I just tried the 'Flip Board View' feature. Neat - but is it > intentional that the horizontal scrollbar now works, uhm, inversed ? > It feels very unintuitive ... > > Cheers, > -h > > _______________________________________________ > Mailing list: https://launchpad.net/~kicad-developers > <https://launchpad.net/~kicad-developers> > Post to : kicad-developers@lists.launchpad.net > <mailto:kicad-developers@lists.launchpad.net> > Unsubscribe : https://launchpad.net/~kicad-developers > <https://launchpad.net/~kicad-developers> > More help : https://help.launchpad.net/ListHelp > <https://help.launchpad.net/ListHelp> > > > > > _______________________________________________ > Mailing list: https://launchpad.net/~kicad-developers > Post to : kicad-developers@lists.launchpad.net > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp > _______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp