In case anyone comes across the same issue:
do NOT do
function gotoIndex(idx) {
var pos = view.contentY;
var destPos;
view.positionViewAtIndex(idx, ListView.Beginning);
destPos = view.contentY;
anim.from = pos;
anim.to = destPos;
anim.running = true;
}
function gotoIndex(idx) {
var pos = view.contentY;
var destPos;
view.positionViewAtIndex(idx, ListView.Beginning);
destPos = view.contentY;
anim.from = pos;
anim.to = destPos;
anim.running = true;
}
To copy to clipboard, switch view to plain text mode
instead use:
function gotoIndex(idx) {
anim.running = false
var pos = view.contentY;
var destPos;
view.positionViewAtIndex(idx, ListView.Beginning);
destPos = view.contentY;
anim.from = pos;
anim.to = destPos;
anim.running = true;
}
function gotoIndex(idx) {
anim.running = false
var pos = view.contentY;
var destPos;
view.positionViewAtIndex(idx, ListView.Beginning);
destPos = view.contentY;
anim.from = pos;
anim.to = destPos;
anim.running = true;
}
To copy to clipboard, switch view to plain text mode
If you wonder why, well I copied the original and implemented onWheel scrolling, when scrolling released the event again, the view go stuck since the animation was not finished, with adding on top the anim.running=false, you cancel the old animation and continue with the new one actually
Bookmarks