Bug report #17851
Top or bottom context menu item is selected and clicked when right clicking a layer
|Affected QGIS version:||2.18.15||Regression?:||No|
|Operating System:||Debian 9||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||worksforme|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||25746|
I wrote a previous bug report which was rejected for this issue. This issue has been observed on multiple computers, and on multiple editions of Qgis, with different distros of Linux. It is currently being reported for 2.18.15
The top menu item is "Zoom to layer" which if the layer covers a large area is very annoying and I can see this happen 20 or 30 times a day when spending a day working on maps. Whilst many Layer settings are accessible from the Layers menu instead of the context menu being needed, some items such as Filter settings are only available from the context menu.
All the testing I have done indicates in a majority percentage of situations, when a right click is made, the top menu item appears already selected, and at that point the software behaves as if it was also clicked, this happens without moving the mouse. Obviously it will be the bottom menu item if the layers list is long.
As a non-programmer I am not aware if there are options to try for example moving the context menu slightly further away from the mouse when it pops up.
I use a lot of different software packages on my computer with right mouse clicks all the time and not one of those other software packages exhibits this problem.
#1 Updated by Harrissou Santanna over 2 years ago
Whilst many Layer settings are accessible from the Layers menu instead of the context menu being needed, some items such as Filter settings are only available from the context menu.
Afaik, there's no feature available ONLY from context menu; they all have duplicate(s), in this case, in View or Layer menu. The filter feature can be found under Layer menu or using ctrl F.
Concerning the issue, i have no opinion as i'm less a Qgis-linux user.
#3 Updated by Patrick Dunford over 2 years ago
My testing leads me to conclude this is application specific rather than a particular desktop environment for Linux.
I'll try to explain what I think the key issues are. If a user can hold the mouse perfectly still while right clicking they have no problem. But if the mosue moves slightly they have a problem because the item on the menu gets selected and somehow clicked. I don't quite know how the click happens, but the select happens.
Whilst maybe when we all used mechanical mice with mousepads, these days most of us use optical mice on slippery desktops or just the fact that they have slippery pads attached to them, hence it is difficult to avoid this small movement when clicking on something. It got really bad when I started using a second computer with its own brand new keyboard and mouse (stacked over the keyboard and mouse of my first computer, so they can be used simultaneously) and the new mouse and desktop were even more slippery than the ones for the first computer)
I think the answer is looking at where the menu is positioned in relation to the current position of the mouse, and whether it can be moved a bit further away.