-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Code hints disappear near right edge of editor #3391
Comments
Reviewed. To me, medium priority, no milestone. I think what's happening is that we get a horizontal scroll event asynchronously after the menu is shown, and we dismiss popups on scroll events. |
Is this still an issue? There's been a lot of work done on code hints. I just tried this... turned off word wrap, typed near right edge of screen to get code hints. All was well. |
Still reproduces easily for me--as soon as it starts scrolling, the code hints show and then hide alternately. |
@njx, ideally, we could fix this issue by distinguishing between user scroll events and programmatic scroll events. All menus could be closed if the user initiates the scroll, else adjust the position of the menu as appropriate for programmatic scroll events. Unfortunately, according to this posting, the information of how a scroll event was initiated is not directly available. The proposed solution seems a bit unwieldy to me. I suppose, for example, we could set a userScroll flag to true on scroll bar events, and to false on the Document change event, but it seems a bit complex. Other than that, I am a bit stumped on how to progress further on this issue. |
I think this is working now. |
@dangoor I still see it on the current dev build. As long as we are closing all popups on the scroll event and we type in the editor in such a way that it automatically scrolls horizontally, we are going to have this problem. |
Yes, I can still see the issue only if Word Wrap is off. |
To @dangoor |
Actual: Code hints will alternate hiding and showing
Expected: Code hints should stay open
The text was updated successfully, but these errors were encountered: