-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selection is easily lost when panning using click-lock mechanism of certain mouse drivers #8105
Comments
@tkansgar This is the behavior I'm seeing:
So the solution would be not to clear the selection, or at least to reselect after dragging the map. |
Yes, that would be great! No matter, wether you don't clear the selection or you reselect it. |
Hi @quincylvania, |
I have some proposals to resolve this issue:
One of these three solutions would be enough for me. |
Hi, is there nobody, who can resolve this issue or make https://preview.ideditor.com/release/ accessible again? |
This is now available again, see #9289 (comment) |
Many thanks @tyrasd! Works again. |
@tyrasd: Is there still an older version, which doesn't automatically display the (unusable) popup menu when holding down the left mouse button a (very) short time? https://preview.ideditor.com/release/ didn't it, but now https://ideditor-release.netlify.app/ does. That popup menu is the cause of this issue (see the notes above). |
You can try out older versions of iD on the following test page: https://id.raifer.tech/sotm-2022/ . But it won't help you much, I'm afraid, as these are limited to the development "test" OSM API, and don't modify the actual OSM database. This is for a good reason, as old versions of iD may contain bugs and use outdated data such as presets. Regarding the bug you encountered: I can confirm the problem, but unfortunately it is not an "easy fix". Can you not, as a workaround until this is fixed, just try to move your mouse a bit quicker after pressing the left mouse button, to prevent that the context menu gets opened in the first place? |
btw: what do you mean by a "short time" here? In my tests, it took about half a second for the context menu to open on long press. Is it a shorter time on your system? |
Of course, I use iD to modify the actual OSM database. So those versions won't help.
That I'm just trying. But it's working more badly than well for me, since I'm using the click lock feature of the mouse driver (as I wrote already in #7826). When pressing the left mouse button I have to wait about 0.1 or 0.2 seconds, until the mouse press is locked. Then I have only about more 0.1 or 0.2 seconds to begin the move operation, so that the menu doesn't appear and the selected object remains selected. In most cases this does not succeed. Additionally to use the click lock feature I have to release the mouse button after beginning the move operation. If I release it before the move operation, the selection also is lost. So preserving the selection when moving the map scene is very difficult for me. The best solution for me would be to be able to switch off the automatic appearance of the poup menu. |
Thanks for giving the context. I've added this detail to the title of this issue. Can you maybe explain why you are preferring to use the click-lock mechanism while mapping? I'm personally not using it and am currently struggling to understand why you could not "just" fall back to use the regular "holding the mouse button down the whole time while panning the map" method in situations where you want to preserve the selection… |
Hi @tyrasd, yes I can. I'm using the mouse daily more than 10 hours, because I'm a professional software developer and use the PC also for my hobbies. And frequent mouse moving with holding down a button leaded to diseases like typewriter's cramp and mouse elbow (a variant of tennis elbow). One action to get rid of them was to use the click lock feature, so that I can release the button when dragging objects on the screen. Another action was to buy and use a vertical mouse, and last but not least I switch between right and left hand mice. The procedure pressing the button, waiting 0.2 or 0.3 seconds, releasing it, moving the mouse and finally clicking at the target position my finger does automatically. I don't need to concentrate on this. And when working with iD, I do it multiple hundred times to pan the map. But losing the selection nearly each time is very annoying. |
Hi @tyrasd, can you say, whether and when this issue will be fixed? |
My current idea is to add a setting to disable the long-click behavior in the next version, which is scheduled to be released in a few weeks (maybe towards the end of the month or so). |
OK, but what do you mean by "to disable the long-click behavior"? I hope, you will disable the appearance of the popup menu (and preserve the current selection) then. And not disable the possibility to pan the map scene by using the click lock feature! |
Sorry, I should have been more precise: I meant that the setting would disable the appearance of the menu on long-click. |
If I’m not mistaken, the long-click behavior was originally added to support touchscreen devices – it’s the only way to access the context menu when using a stylus, for example. Perhaps there’s a way to detect touchscreen devices and only enable the setting by default in that case? (It’s similar to a behavior that used to be common on the Mac until about 2005.) |
That's right (see #7577 (comment)) I've given this a second look and found an actually pretty simple way to only open the context menu on long presses of non-mouse devices (i.e. touch or stylus users). Mouse users who cannot use a right click to open the context menu (for whatever reason) can still fall back to using the menu key or long pressing the space bar. @tkansgar can you please confirm that the development version on https://ideditor.netlify.app/ now works for your use case? |
@tyrasd: Perfect for me! I hope, no one else will miss the automatically displayed menu now. |
Hi,
(just copied from #7826 (comment))
Each time, I move the whole map scene a little bit by pressing and dragging some point beyond any map object, the selection of the object recently selected (mostly some kind of highway / track) is lost. So I must reselect it after each map scene moving. Is it possible to preserve the selection in this case (like older Id versions did)?
BR
tkansgar
The text was updated successfully, but these errors were encountered: