edemaine / cocreate

Cocreate Shared Whiteboard/Drawing
MIT License
209 stars 27 forks source link

Ghost objects #190

Closed diomidov closed 2 years ago

diomidov commented 3 years ago

Sometimes when you deselect text, the selection shadow remains. It stays there even if you delete, move, or edit the original text object. Switching to a different page and back fixes it.

image image

I have only seen this happen twice, and I haven't been able to reproduce it :(

diomidov commented 3 years ago

I have managed to reproduce it a few times, but I still can't do it consistently: image

edemaine commented 3 years ago

I've seen this too, but it's tricky to reproduce which makes it tricky to track down. In your reproductions, have you been using multiple browser windows on the same board, or were you able to reproduce it in a single tab?

diomidov commented 3 years ago

I've only used single tab.

Turns out it has nothing to do with text: image

edemaine commented 2 years ago

I found a reliable way to reproduce this:

  1. Create a text object and leave it selected and hovered
  2. Go to another tab without moving the mouse
  3. Delete the text object
  4. Original tab has ghost(s)

I also am now deploying a fix to this problem. Let me know if you see ghosts again; if not, this may finally be fixed.