Disable link loading animation when offscreen
Stop the link preview loading indicator animation running when the delegate isn't visible. CCBUG: 465715
This commit is contained in:
@@ -320,4 +320,9 @@ ColumnLayout {
|
||||
|
||||
visible: eventType !== MessageEventModel.State && eventType !== MessageEventModel.Notice && reaction != undefined && reaction.length > 0
|
||||
}
|
||||
|
||||
function isVisibleInTimeline() {
|
||||
let yoff = Math.round(y - ListView.view.contentY);
|
||||
return (yoff + height > 0 && yoff < ListView.view.height)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user