-
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
Avoid deselecting feature that goes out of view #4128
Comments
Same with zooming out |
I really don't see this as an issue, since the multiselected objects don't get deselected when you move the map, and that is when you would really need this feature. |
The case where I really need this feature is when I’m piecing together a route relation where the nearest existing member is clear across town. (Most recently, this happened as I pieced together a bike route relation from spotty signage.) One of #3622, #3487, or this issue would make my workaround unnecessary:
|
@1ec5 How do you reproduce this? I tried clicking on a feature then panning far away and it stayed selected. Safari and Chrome. |
I haven't digged through the history in this bug tracker but deseselecting features when going out of view could preserve us from people accidentally deleting or modifying objects. |
Might be worth popping up a warning if something out of view will get deleted or edited |
Huh, you’re right, features no longer go away when panning away from them. That certainly makes it easier for me to add
This is how it used to behave when I originally opened this issue. (I opened the issue as an alternative to #3622 when it seemed like there was opposition to that idea.) No idea when the behavior changed. Now I feel a bit silly for that circuitous workaround! iD prevents the user from deleting or moving a feature that isn’t fully visible. Only the tag editor remains usable after moving the selected feature completely out of view. |
I guess that this should be closed now? |
I'm not sure when this was changed either but it appears to be live on osm.org and I haven't heard about any related problems. I hope it's a helpful change! I do think we should work on #2962 and #5001 to keep the feature selected, visible, and editable when zoomed out as well. |
iD automatically deselects a feature when it goes out of view. (As far as I can tell, this has always been the case.) iD should avoid deselecting features for this reason, or it should at least be more lenient. For example, it’s currently very difficult to relate a place POI to a boundary relation unless the place is very small in area. (By analogy, I find it annoying to use a text editor that insists on moving the insertion point when I scroll up and down.)
On the other hand, it could look weird if the user had accidentally panned the feature out of view. The tag editor would be open with no clear target. Perhaps there could be an “off-screen” indicator, sort of like those “distance to” arrows at the edges of paper maps, plus a keyboard shortcut to jump to the selection. Or maybe #3622 could be fixed instead. 😉
/ref #3622 (comment)
The text was updated successfully, but these errors were encountered: