shotcut icon indicating copy to clipboard operation
shotcut copied to clipboard

Drag of clip on timeline with bad position

Open mikecrash opened this issue 3 years ago • 10 comments

When dragging clip on time line, the current behavior is this:

  1. press left mouse button on the clip
  2. move mouse to the left/right to move the position, nothing happens until you move the mouse by some amount (about 20 pixels?)
  3. clip starts moving not from the position where button pressed, but on the position of current mouse position when dragging starts, if you move mouse fast, you drag clip outside of the clip, so clip is not on the position of mouse, but somewhere far away from cursor

Correct behavior: Clip holds on mouse position when first clicked

Hint: It seems when the dragging starts, the mouse position is saved and from that position is counted the moved position of the clip. However correct function should be to save the start mouse position in onmousedown event and from that position count the new position of clip.

Tested version: 22.11.25

mikecrash avatar Dec 04 '22 09:12 mikecrash

This does not match my experience when snapping is turned off. Maybe you have snapping on?

image

bmatherly avatar Dec 05 '22 02:12 bmatherly

It doesn't matter if the snap is on or off. Most significant it is when moving the mouse fast.

May be it has something to do with OS? Tested on Debian in GNOME. I will test it in Windows.

mikecrash avatar Dec 05 '22 10:12 mikecrash

@mikecrash can you provide a screencast of this occuring perhaps ?

luzpaz avatar Sep 23 '23 14:09 luzpaz

@luzpaz stop bumping our bugs with your comments when you are never the one to fix one or provide more insight.

ddennedy avatar Sep 23 '23 15:09 ddennedy

@mikecrash can you still reproduce on 23.09 ?

I can't reproduce on Manjaro Linux 23.02 Shotcut 23.09

luzpaz avatar Nov 06 '23 14:11 luzpaz

Yes, on 23.10 installed with snap it's the same. However I have probably more information. If I select the clip first, it seems it works as expected. But when directly dragging the clip without first selecting it with a mouse click the clip is offset-ed from the cursor. I have recorded video with the case:

https://github.com/mltframework/shotcut/assets/60000811/f36e6d58-d3a3-4c0b-8b02-2816d3759227

mikecrash avatar Nov 06 '23 15:11 mikecrash

Video 'corrupt'

luzpaz avatar Nov 06 '23 16:11 luzpaz

@luzpaz Yes browser says corrupt, but if I download the video and play it with vlc, it works. Try the same...

mikecrash avatar Nov 06 '23 17:11 mikecrash

Downloaded. Shows black screen for 8 seconds.

luzpaz avatar Nov 07 '23 02:11 luzpaz

Opened in ShotCut and reexeported. Hope it will work.

https://github.com/mltframework/shotcut/assets/60000811/831938d9-126b-493e-bb73-cd47e6d75251

mikecrash avatar Nov 07 '23 08:11 mikecrash