Hey Scott,
I adjusted your code to only allow scrolling in the Y direction and tried it
on an iPhone for the first time.  It works, but the movement/animation of it
is almost non-existent.  I was bummed that it was sooooo sluggish.  Works
perfectly on Safari 3 on my mac. Great idea and got my brain spinning with
the possible applications of it.  Maybe there's another way to get the
movement to be at least as smooth/fast as regular two-finger scrolling of
divs and iFrames?

-=Randy


On 7/30/07 1:57 PM, "Scott" <[EMAIL PROTECTED]> wrote:

> 
> Randy,
> 
>   I have a prototype that does exactly what you're talking about.
> I've been sitting on it for a week now, hoping to get around to a blog
> post, but, its not going to happen ;)  Its pretty rough, but it works
> well once you get used to the two-finger slide:
> 
> http://static.biggu.com/ipdrag.html
> 
> Touch a box to select it, then two-finger drag it to where you want it
> to go.  I'm sure the math is off, as I did this at 2 AM last week, so
> feel free to correct it/make it actually usable :)
> 
> - Scott
> 
> On Jul 30, 2:46 pm, Randy Walker <[EMAIL PROTECTED]> wrote:
>> I mean a div that is 334px high containing content that may be thousands of
>> pixels high.  Ie. A list. overflow:auto would keep the div at the exact
>> height, then I want to be able to use scrollto, or something similar, to
>> scroll that content.  Looking for a replacement to two-finger scrolling.
>> There are no scrollbars anyway in iPhone?  Not talking about sliding a div
>> in/out of the viewport.  Talking about scrolling the contents of an existing
>> div, without moving the div.  Hope that makes sense.
>> 
>> -=R
>> 
>> On 7/30/07 12:18 PM, "Yehuda Katz" <[EMAIL PROTECTED]> wrote:
>> 
>>> Use IDs ;)
>> 
>>> Also, you don't really need an overflow div, as there are no scrollbars to
>>> look nasty, and hiding elements outside of the viewport makes scrolling
>>> impossible. You simply show the element you want for animations ;)
>> 
>>> -- Yehuda
>> 
>>> On 7/30/07, Randy Walker <[EMAIL PROTECTED]> wrote:
>> 
>>>> I was thinking along the same lines all day yesterday!  How would one use
>>>> scrollto, or something like it, to scroll content in an overflow div?
>>>> Ie.now that I have the alphabet in place, how would I cause a tap on the
>>>> alphabet to scroll the overflowed div to the right letter?  I don't want to
>>>> use anchors since they seem to always cause the address bar to drop down
>>>> for
>>>> a minute and then disappear again.  Blech!
>> 
>>>> On 7/30/07 3:02 AM, "Yehuda Katz" <[EMAIL PROTECTED]> wrote:
>> 
>>>>>> Hey guys,
>> 
>>>>>> I had something of a breakthrough this evening that will make page
>>>>>> transitions super-smooth.
>> 
>>>>>> I was playing with Firebug on iphone, looking through all the various
>>>>>> properties available (and I believe strongly that there are some
>>>>>> unexplored avenues) when it hit me. Instead of trying to move elements
>>>>>> around the page, why not try scrolling the viewport itself.
>> 
>>>>>> We already know that scrollTo works just fine, so I tried to see how
>>>>>> many scrollTo's I could make happen using a simple setTimeout. I was
>>>>>> amazed. I was able to get super-smooth page transitions using
>>>>>> scrollTo. I told Joe about this finding, and he was able to duplicate
>>>>>> it for use in iUI.
>> 
>>>>>> Good luck folks! I'm excited,
>> 
>>>>>> -- Yehuda Katz
> 
> 
> > 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to