Adium message scrolling bug
Adium message scrolling bug
Hi, I recently got adium, and i noticed everybody has been having a problem with the scrolling. I've been searching through all files that are in each message styles that include the smooth scrolling, but nowhere do I find any commands for scrolling or anything. Some (like Satin) dont even have a template.html that I see. I saw that the maker of Milk mockie fixed his. Does anybody know where the smooth scrolling aspect lies within Satin or others?
yes
I know about this problem; I'm wrote ProtoScroll, which is (to my knowledge) where everyone else got their smooth scrolling functionality from. And me, well, I got the idea from Proteus :)
And lo and behold, Proteus is having this same problem...
By the way, the actual scrolling is done with JavaScript:
I really don't know why it isn't working; I don't know what changes Apple made in the JS runtime, and this stuff is fantastically tedious to debug in Adium.
--Eoban
And lo and behold, Proteus is having this same problem...
By the way, the actual scrolling is done with JavaScript:
Code: Select all
function scrollToBottom() {
//document.body.scrollTop = (document.body.scrollHeight-window.innerHeight);
//return;
if ( intervall_scroll ) clearInterval( intervall_scroll );
intervall_scroll = setInterval( function() {
var target_scroll = (document.body.scrollHeight-window.innerHeight);
var scrolldiff = target_scroll - document.body.scrollTop;
if ( document.body.scrollTop != target_scroll ) {
saved_scroll = document.body.scrollTop;
document.body.scrollTop += scrolldiff / 5 + ( scrolldiff >= 0 ? (scrolldiff != 0 ) : -1 );
} else {
saved_scroll = -1;
clearInterval( intervall_scroll );
}
} , 10 );
}--Eoban