-
-
Notifications
You must be signed in to change notification settings - Fork 211
Description
Avogadro version: (please complete the following information from the About box):
- Avogadrolibs: any recent, e.g. 1.102.1
- Qt: 6.9.3
Desktop version: (please complete the following information):
- OS: Fedora 42
- Flatpak
Describe the bug
Sometimes, after launch, the position clicked is not the position where atoms appear. The atoms instead appear below and to the left of the clicked position.
It seems to be some mathematical calculation that's at fault, because though the offset varies, it is not random, and is clearly a function of the position on screen.
The atoms also appear further away than usual.
It's definitely about misinterpretation/mistranslation of the coordinates, as right-click can also be used to delete atoms, as long as the same offset is used.
It's an odd bug, primarily because it only appears in certain circumstances:
- On Fedora (on openSUSE Tumbleweed I haven't observed it, at least not within memory)
- With the Flatpak (the AppImage is fine)
- When the initial window is smaller than the full screen
- After launch
- Before anything is done that causes the size of the 3D view to change
As soon as anything is done that causes the 3D view to change dimensions, the positions of the atoms on the screen change (they move up and right, get closer, and subsequent clicks result in correct positions). Behaviour is always correct from that point onwards, no matter what, and the bug only reoccurs after closing and relaunching, so far as I can tell.
Things that trigger the reversion to correct behaviour therefore include the following:
- Maximizing the window
- Resizing the window
- Changing to a tool with a wider tool pane than the Draw Tool (e.g. the Manipulation Tool, but not the Navigation Tool)
Note that the issue has been present for a little while, and is still present in at least 1.102.1.