slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
16.93k stars 566 forks source link

online editor: hello world re-appears unexpectedly #1926

Closed tronical closed 1 year ago

tronical commented 1 year ago

Steps to reproduce:

  1. Go to http://slint-ui.com/editor ; observe the "Hello World" with the "Ok" button
  2. Remember where the "Ok" button is on your screen.
  3. Replace the contents of the editor with the following snippet and observe the green rectangle fill the preview;
export Demo := Window {
    background: green;
}
  1. Move your mouse cursor into the area that used to show the "Ok" button
  2. Observe how "Hello World" reappears 👀
tronical commented 1 year ago

I think that this is not actually a bug in the online editor. I looked at it in the inspector and there's still only one canvas element in the DOM.

ogoffart commented 1 year ago

there is probably two active window on the same canvas