microbit-foundation / python-editor-v3

Micro:bit Educational Foundation Python Editor V3
https://python.microbit.org
MIT License
57 stars 36 forks source link

Code embeds can get stuck up #796

Closed microbit-matt-hillsdon closed 2 years ago

microbit-matt-hillsdon commented 2 years ago

We've seen this happen from time to time but it can be hard to reproduce.

The best repro is to use the mouse to try to slice off a tiny corner of the code embeds in a reasonably swift movement. I can do it 9/10 this way whereas just moving over the code embeds it happens more like 1/20.

microbit-matt-hillsdon commented 2 years ago

What we know so far:

You can't unconditionally lower the pop-up in the mouse leave handler as it also fires when the pop-up is raised which would immediately close it!

But we can lower the pop-up if we're not over either code area (and the have the same position).

microbit-matt-hillsdon commented 2 years ago

Fix in eae15a6885ca4960794b0eebd713910d976bf046.

I've left this in the less-reference branch, but if that gets reverted for any reason we'll want to keep this.

microbit-matt-hillsdon commented 2 years ago

Will close this when less-references is merged.