Commit 284233f2 authored by luyikei's avatar luyikei

Timeline: Find new position even if x is 0 and the same as the old value

parent 04e6951b
......@@ -281,7 +281,7 @@ Item {
scrollToTarget( drag.source );
// Optimization: Delta delta X should be different
if ( deltaX === drag.source.x - lastX ) {
if ( deltaX === drag.source.x - lastX && drag.source.x !== 0 ) {
lastX = drag.source.x;
return;
}
......
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