mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-28 04:54:13 +02:00
04e2279a7f
The 3D mouse only acted on the diagram editor: SpaceMouseListener ignored every other window, so the element editor did not move at all (reported by scorpio810 in PR #635 with a SpacePilot Pro). applyMotion() now also handles a QETElementEditor, driving its ElementView through the same scrollbar pan and a new ElementView::zoom(factor), which keeps the wheel zoom's clamping. The element editor's scene rect only covers what is on screen, so it is grown before each pan sample, as its middle-button pan does; without that the scrollbars have no range and the pan does nothing. Verified under Xvfb with an LD_PRELOAD stand-in for libspnav feeding recorded motion samples: element editor zooms 1.63x for ten z=50 samples and pans; diagram editor screenshots are byte-identical to master's for the same input. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>