Skip to content

Click is now safe - #1874

Open
Proggerdogger wants to merge 2 commits into
mltframework:masterfrom
Proggerdogger:fix/click-is-now-safe
Open

Click is now safe#1874
Proggerdogger wants to merge 2 commits into
mltframework:masterfrom
Proggerdogger:fix/click-is-now-safe

Conversation

@Proggerdogger

@Proggerdogger Proggerdogger commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

This should fix the error I introduced with my previous fix. The problem was that by making shotcut accept <1 pixel movements, it would also take even small movements like that caused by clicking and insert additional frames and the like. This was fixed by making it so that acceptance is also based on a change being greater than a certain value of x. Feel free to check this on whatever codebase you found out this bug existed on, and see if this fixes it, I am quite confident it's good.

The build-shotcut-linux failure is not from this change. CI clones mltframework/shotcut and runs git checkout origin/, but the branch only exists on my fork, so checkout fails before compiling.

This should fix the error I introduced with my previous fix. The problem was that by making shotcut accept <1 pixel movements, it would also take even small movements like that caused by clicking and insert additional frames and the like. This was fixed by making it so that acceptance is also based on a change being greater than a certain value of x. Feel free to check this on whatever codebase you found out this bug existed on, and see if this fixes it, I am quite confident it's good.
@ddennedy

Copy link
Copy Markdown
Member

Is this supposed to apply atop #1869 or replace it? I get a merge conflict if I reapply that and then merge this, but easy to resolve. However, #1869 also has changes to Track.js.

@ddennedy

ddennedy commented Jul 27, 2026

Copy link
Copy Markdown
Member

I tested the combination of that plus this. I confirm this fixes the bug that #1869 introduced. However, there is a minor problem that it appears that a clip has moved when you click to select it: it often nudges slightly to the left. But when you zoom in to check details nothing changed; rather it undermines confidence causing wasted effort to check it. It is caused by parent.x = startX;. Do you think it is necessary?

@Proggerdogger

Copy link
Copy Markdown
Contributor Author

I could probably change things so that clicks don't appear to move the timeline at all unless you're more serious about moving them ( a real drag). I'll work on it later. Thanks for accepting the commit :)

@ddennedy

Copy link
Copy Markdown
Member

I am not sure we are on the same page. Please answer my questions.

@Proggerdogger

Copy link
Copy Markdown
Contributor Author

I think the problem is that the >x change is stopping the change from actually being committed on a click, but it still looks like it moves because it displays the change then decides whether to accept it. That change is never accepted because it isn't a large enough percentage width of the screen (the x is pixels btw). To fix that you would probably have to put in a check before displaying a change as well.

@Proggerdogger

Copy link
Copy Markdown
Contributor Author

Oh to be clear, yes it is necessary, but a new piece of code will have to be added to stop the unpleasant nudge you're talking about.

@ddennedy

Copy link
Copy Markdown
Member

I disagree that it is required. Why do you claim that it is? More code change increases the risk.

@Proggerdogger

Copy link
Copy Markdown
Contributor Author

I'll do some more testing without the x thing, but I think the problem is that without it small movements are going to cause the timeline to change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants