Autoscrolling no longer working after Safari 4 upgrade

Derrick Spell's Avatar

Derrick Spell

15 Jun, 2009 02:22 PM

After upgrading to Safari 4 final, the window no longer auto-scrolls when new messages are received. (i.e. after hearing the 'pop' for a new message, I must scroll the window manually to read it).

  1. Support Staff 1 Posted by trevor on 15 Jun, 2009 06:51 PM

    trevor's Avatar

    Hi Derrick,

    I just upgraded a test machine to Safari 4 this morning and autoscrolling seems to be working just as it did with Safari 3. That is, if you are scrolled to the bottom and a new message arrives, it will scroll the new message into view (it doesn't autscroll if you've scrolled-up to earlier in the transcript).

    I haven't had any other reports of this so I'm wondering if some of Campfire's javascript failed to load/initialize properly for your session. Does the problem still persist after you quit and relaunch propane? (if you don't close any windows before quitting then Propane will just re-open your last chats).

    Let me know what you discover.

    Thanks, Trev

  2. 2 Posted by Derrick Spell on 16 Jun, 2009 02:29 PM

    Derrick Spell's Avatar

    I asked around and none of the other guys at work are having the problem
    either. It's persisted a few days, through several program launches and
    even a reboot. I just tried reinstalling safari 4 and propane, but the
    problem remains. I'm left scratching my head...
    Interestingly, if I ignore the chat messages, then after about 4 or 5
    msgs the window starts scrolling again - only it's still behind. Is
    it possible the window is miscalculating the visible height or somesuch?

    Thanks,
    -Derrick

  3. Support Staff 3 Posted by trevor on 16 Jun, 2009 05:22 PM

    trevor's Avatar

    Hi Derrick,

    Ugh, sorry about this. It's yet another nail in the coffin for using a hacked-up webkit to render standard campfire :-(

    It's entirely possible that the height is being miscalculated somehow - the auto-scrolling is handled by campfire's own campfire.js file in a scrollToBottom() function, which relies on values returned by their getPageHeight() and getWindowHeight() methods.

    First of all, have you changed any of the stylesheet definitions in ~Library/Application Support/Propane/styles/cf_chat.css? If so, could you please move or rename that file and quit/restart propane, just so we're both using the same settings.

    If the problem goes away after letting propane restore the default cf_chat.css then we know something in your custom css is the culprit, confusing the javascript calculations on page height.

    If it doesn't, I'd like you to scroll to the top of a chat and type the following into the 'speak' input box (other chatters won't see this, it only runs in your local campfire):

     /eval window.chat.windowmanager.isScrolledToBottom();
    

    Once you press enter, does the chat scroll down at all? Does it scroll all the way to the bottom (if not, how far)?

    Also, does the result of the eval come up as true or false in your chat?

    Thanks, Trevor

  4. Support Staff 4 Posted by trevor on 16 Jun, 2009 05:27 PM

    trevor's Avatar

    Hi again Derrick,

    nevermind - I think I have the culprit: View->Make Text Bigger

    I need to experiment some more to figure it all out - until then, if you do View -> Make Text Normal Size the auto-scrolling should work. Do let me know if that turns out to be incorrect.

    I'll keep you posted.

    Regards, Trev

  5. Support Staff 5 Posted by trevor on 16 Jun, 2009 09:21 PM

    trevor's Avatar

    Hi Derrick,

    just to keep you informed, I've replicated the problem in Safari 4 with "text-only-zooming" enabled (which is what Propane uses). It looks like there's some sort of page-size metric that's not updated properly in Safari 4 when you zoom just the text.

    I've notified 37signals about the problem and I'm waiting to hear back about whether they intend on addressing the issue or not.

    I'll keep you informed about any progress.

    Thanks, Trev

  6. 6 Posted by Derrick Spell on 17 Jun, 2009 03:27 PM

    Derrick Spell's Avatar

    Trevor,
    Good call! That was the problem - I completely forgot that I had bumped
    down the font
    size. Thanks for investigating my oddball issue. I'm in campfire all
    day long, often in multiple rooms. Propane has been a godsend for
    it's compact size and easy tabbing. Thanks for a great product!

    -Derrick

  7. 7 Posted by Jay Laney on 08 Jul, 2009 05:36 PM

    Jay Laney's Avatar

    Wanted to add myself to this thread, as this started hitting me as well. "Make Text Normal Size" worked fine for me as a workaround.

    Oddly, I've been running with larger text and Safari 4 since it came out, but this just started happening today.

    Anyway, thanks for the help, Trevor.

    // Jay

  8. Support Staff 8 Posted by trevor on 13 Jul, 2009 09:16 PM

    trevor's Avatar

    Hey guys,

    I just released 0.9.8(RC1) which should correct this issue, let me know if you still have any problems.

    Regards, Trev

  9. 9 Posted by Derrick Spell on 14 Jul, 2009 04:45 PM

    Derrick Spell's Avatar

    This seems to be fixed. I used "Make Text Smaller" and the scrolling is still working as expected. Thanks, Trevor!

  10. System closed this discussion on 30 Aug, 2013 02:03 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac