Adium message scrolling bug

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
Cicucci
Harmless
Posts: 2
Joined: Sun Apr 17, 2005 7:15 pm

Adium message scrolling bug

Post by Cicucci »

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?
eobanb
Harmless
Posts: 2
Joined: Sun Apr 17, 2005 11:43 pm
Location: Milwaukee, WI
Contact:

yes

Post by eobanb »

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:

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 );
		}
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
Cicucci
Harmless
Posts: 2
Joined: Sun Apr 17, 2005 7:15 pm

Post by Cicucci »

I still can't find it. I click show package contents on the satin file, and nowehere can i find the template.html file. Also, I looked through the other files, and I did not see it there either. The footer and header come up blank. What am I missing?
Post Reply