Commit 376ee95b authored by luyikei's avatar luyikei

Timeline: Optimize clip moving especially when the view is extremely zoomed in

parent 132da5b5
......@@ -267,7 +267,10 @@ Item {
newX = oldX;
}
if ( length < ptof( newX + linkedClipItem.width ) ) {
// We only want to update the length when the left edge of the timeline
// is exposed.
if ( sView.flickableItem.contentX + page.width > sView.width &&
length < ptof( newX + linkedClipItem.width ) ) {
length = ptof( newX + linkedClipItem.width );
}
......@@ -278,7 +281,8 @@ Item {
}
}
if ( length < ptof( newX + target.width ) ) {
if ( sView.flickableItem.contentX + page.width > sView.width &&
length < ptof( newX + target.width ) ) {
length = ptof( newX + target.width );
}
......
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