Commit 34dab072 by luyikei

Timeline: Fix clip placement in collision detection

parent 141beca3
......@@ -106,7 +106,7 @@ Rectangle {
cEndPos += clipMargin;
if ( cEndPos >= newPos && newPos + target.length - 1 >= cPos ) {
if ( cPos >= newPos ) {
if ( cPos - target.length + 1 > 0 )
if ( cPos - target.length + clipMargin >= 0 )
newPos = cPos - target.length + clipMargin;
else
newPos = target.position;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment