SAGE-3 / next

Software to enable data-rich collaboration from high-resolution display walls to your laptop
https://sage3.sagecommons.org
Other
12 stars 2 forks source link

[UI] App in Board Disappears or Transposes when Selected after Zooming In #1011

Open cleeuh opened 2 weeks ago

cleeuh commented 2 weeks ago

Bug Description:

Zooming in followed by a promptly timed left click on the board app seems to cause the associated board app to vanish or move to a distance corner of the board. This is assumed to be caused by timing of updates or race conditions.

Affected Devices:

(Seemingly) Unaffected Devices:

Tested On:

Behavior 1

Steps to Recreate:

Video Description:

In this example, the spamming of plus and/or minus keyboard keys followed by an immediate left mouse click on the Sage Application (Sticky) caused it to vanish from view. The application will reappear upon rejoining the board.

https://github.com/user-attachments/assets/3bdb6d91-73b2-4cfc-b9d8-2c63fbb28203

Behavior 2

Steps to Recreate:

Video Description:

In this example, left click a sage application while holding the plus key causes the application to transpose to the bottom right of the board.

https://github.com/user-attachments/assets/33e5cc26-ae40-4ab5-8b6b-8965bd67f196

renambot commented 2 weeks ago

I can reproduce. That's a weird one!

rctheriot commented 2 weeks ago

Behavior 2 happens on dev and main

cleeuh commented 2 weeks ago

After further investigation, I suspect that the Rnd (library responsible for dragging the app windows) is the potential culprit. It may potentially be the interaction between the built-in Rnd library's local drag positioning parameters/variables being out of sync with the scale of the parent components?. I would have to investigate further to be conclusive.

What I tried to debug

EDIT: After a bit more debugging I now suspect the issue may have to do with the re-render?