sleap icon indicating copy to clipboard operation
sleap copied to clipboard

Node placement bug

Open olinesn opened this issue 3 years ago • 2 comments

Hello,

I've got a bug when using the 1.2.0a6 build: When dragging a node, if you change frames before you've release the node (still holding left click) and then release after you've pressed the next frame button, when you return to the labelled frame, attempting to correct that node's placement slingshots it into the top left corner of the screen.

Simple fix would be to return the node to its original position before it got dragged.

Thanks, Stefan

olinesn avatar Mar 11 '22 04:03 olinesn

Update: @roomrys has done some work to investigate this issue, but it turns out to require significant architectural changes to how we render instances on new frames and how it interacts with mouse event callbacks.

We'll revisit this at some point in the future.

talmo avatar May 12 '22 22:05 talmo

Observations

  • It does not matter which node/instance/frame was dragged outside the frame, the first point dragged after the event jumps to (0, 0) even if it is a completely different instance on a different frame
  • The node always jumps to (0, 0)
  • QtVideoPlayer is in a potential drag event (with the cursor rendered as an open-hand when hovering over the video player image)
  • Pressing the Alt key and dragging the entire instance does not result in the bug
  • The nodes on the instance are loaded (and therefore set) as expected

roomrys avatar Aug 10 '22 19:08 roomrys