KlausSchaefers / quant-ux

Quant-UX - Prototype, Test and Learn
GNU General Public License v3.0
1.93k stars 200 forks source link

BUG: editing (design) components not selectable anymore #90

Open Equilibrier opened 2 years ago

Equilibrier commented 2 years ago

This happens to me on a project imported from a figma project, so that, after first page load, I can do all sorts of edits, but after a return from a simulation-session I can only select components from the layout panel, but not from the canvas itself. It seems like a bug to me. The only way I can return is by literally refresh the page from the browser.

KlausSchaefers commented 2 years ago

Can you give more more details how to reproduce?

Equilibrier commented 1 year ago

Sorry for the late response, and it's been a long time since I saw this bug, but I think it was pretty easy to reproduce and it worked every time, on my Windows 7 64 bit pc, Chrome browser, it was enough for me to alt-tab to another full-screen application and alt-tab back to Chrome (with quantux opened) and the bug was produced. For fixing it, it was enough to just press "a" key from the keyboard, and it returned back to the normal selection mode. This fix also works every time, and no browser refresh needed anymore. I didn't saw any key listeners for "a" key in your code, but I guess you have that somewhere, because, when the bug produces, before pressing the "a" key to return to normal selection mode, the view itself changes a bit, so I see some nice rulers on any canvas element I hover my mouse on, and on pressing "a", those rulers are being deactivated. Hope this helps !

Equilibrier commented 1 year ago

These are the rulers I was talking about. These are appearing after alt-tab several times, and they only dissapear (and normal selection mode is restored), after I press the "a" key.

image