Mobile Safari on iPad doesn't seem to broadcast JavaScript scroll events

You may have noticed that as part of my blog redesign, the sidebar is very minimal, and for longer pages, when it normally would have scrolled off-screen, it stays in-place. This isn't a new idea -- not by a long shot -- but I do like the functionality. I think it improves the user experience.

I had occasion to check how my site looks on an iPad recently (verdict: looks good!), and for the most part it looks exactly how I had hoped it would: Exactly as you see on the desktop... except for one little thing.

The scroll event isn't broadcast -- as far as I can tell, anyway -- when you drag around the page. I'm making this educated guess based on the fact that the sidebar content doesn't stay on screen when you scroll past it. I'm sure that my other JavaScript code is running just fine, including other jQuery code that's part of the new theme.

Oh well. Such is life in this Magical* new world that Steve Jobs is creating for us. At least there isn't any porn available** on mobile devices, now, and my children will be safe!

* All things Magical, as well as the word "Magical" itself, are the domain of the Apple Corporation. Steve, please don't sue me.
** Unless you look for it, that is.

in Apple Posted 2010-05-26 11:40

6 responses:

giveitup
giveitup 2010-05-26 1:07 PM #
Ahhhh another iPad/Adobe rant to drive users to your site. Give it up.
Adam Tuttle
Adam Tuttle 2010-05-26 5:26 PM #
Quite not, coward. My motives are clearly laid out in the post. Sad to see you have to hide behind an anonymous handle and non-existant email address.
Jan Verhulst
Jan Verhulst 2010-10-29 8:39 AM #
Have you found a solution to this problem yet? I'm having the exact same issue...

Tnx in advance
Adam
Adam 2010-10-29 9:01 AM #
Hi Jan,

Sorry, I don't have a solution for you. It was posted more to be informative than anything else.
Alex
Alex 2011-10-14 2:31 AM #
You can check out the `touchmove` event to handle this.
André Alçada Padez
André Alçada Padez 2012-04-04 11:18 AM #
@Alex, touchmove doesn't fire when the page is being scrolled... unfortunately

Leave a comment:

Leave this field empty: