-
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
Extend way operation blocked for the first second of selecting a node at the end of a way. #6289
Comments
Hmm I just tried it but wasn't able to reproduce it in Chrome 73... |
I had validation set to everything everywhere - would that make a difference? |
Probably not - these validators run after the tile is downloaded and parsed during a browser idle callback. (some browsers don't support this, and will just run the task 1ms later.) Can you let me know some more details about which browser you have? If you are able to use the browser's developer tools to profile what it's doing during that half second, that would help a lot. |
I can reproduce this on both Chrome for Ubuntu and Windows easily. I can't reproduce it on Microsoft edge, though. I haven't tested it with other browsers yet. |
It is actually possible to reproduce on Edge, just more difficult. |
If I click on a node at the end of a way, and then try extending the way before iD has selected the node, this issue pops up. For some reason, chrome takes longer than edge to select the node, but it is still reproducible on both. |
The release version of iD also has the selection delay, but it somehow "remembers" that I pressed |
For what it's worth... #6028 / 37557a7 introduced a 20ms delay between clicking and selection, to give blur events a change to fire.
It's more likely that it takes a tiny bit longer between when you enter |
I did notice that we were frequently resetting the sidebar to |
I believe I was able to reproduce the issue on Chrome, MacOS. I tried to record it with the performance tool on. In the bottom left there is https://github.com/keycastr/keycastr at work showing what keys I press. Video: https://www.dropbox.com/s/9u69fd2wrwgq4l8/osm-ideditor-issue6289.mov?dl=0 (temporary) Can you read anything from the performance-recording, Bryan? I still don't really know what to look for with those graphs. |
Thanks @tordans - it does look like the style recalculation is causing the delays. |
This is also blocking the |
I think this might be fixed now - @BjornRasmussen can you check it again in preview? |
It hasn't been fixed yet. I've learned to wait before pressing action shortcuts, though, so this isn't affecting me anymore. |
What exactly happens before showing the possible operations when someone selects a node? It seems to be taking 1.5 seconds for me now on master, which is quite strange. My computer is from 2010, but it's still quite strange that so much needs to happen before the available operations are returned. |
This is not present on the live version on osm.org, but is on preview.ideditor.com/master
To reproduce:
A
within a half second.Continued a line
will show up, but no line continuation will actually happen.This is not a very serious bug, but really slows down cleanup of disconnected ways.
The text was updated successfully, but these errors were encountered: