matt, hey Could you show me how to exacty add that class?? i am developing http://iwebkit.net and it would be awsome to have hover effects ontouch instad of when you release. Thanks a lot in advance for your tips
p.s. i don't know any javascript, well, a little so please explain a bit ;) Thanks! On 16 fév, 08:19, Matteo <[email protected]> wrote: > Rob, > very interesting reply, under many aspects. > > > The function changes the UI in fundamental ways. Press and hold on > > the first button and it is greyed-out to show it has focus. Move your > > finger and the focus is removed since the movement is interpreted as > > panning. If the button it tapped, the element is greyed/ungreyed > > quickly to show the user where the event occurred before the click > > event fires. I think this is a very useful feature, even though it > > looks less that elegant in an otherwise slick touch interface. > > What I presented is just a proof of concept. If you add a "hover" > class to the element onTouchStart and remove it onTouchMove you can > mimic the standard UI pretty closely. > > I agree that on a standard web page the script is a nonsense, but can > be useful on a webapp, even more on a phonegap'd one. > > Matt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
