Absolutely unbelievable and ridiculous! I've been killing myself over this for a few days now.
Has this been submitted as a webkit bug? (the fact that for no apparent reason translate3d is faster than translate) Thanks! Alexander (aka Sasha) Maryanovsky. On Aug 21, 7:16 pm, Simon Fraser <[email protected]> wrote: > On Aug 21, 2009, at 7:54 am, msasha wrote: > > > I'm porting my maps library (http://www.maryanovsky.com/sasha/maps/) > > to the iPhone (http://www.maryanovsky.com/sasha/maps/iphonedemo/) and > > I've run into the problem of making panning (and later, pinching) > > smooth. As can be seen in Google Latitude, panning can be made very > > smooth, but I, so far, have been unable to make smooth even simple > > drag and drop of a few images. > > > You can see my attempts > > athttp://www.maryanovsky.com/sasha/maps/iphone/js.html > > (open this on the iPhone or iPod Touch to be able to drag the images). > > If you view the source, you can see that I've tried 3 methods to > > implement panning: > > > 1. Setting the "top" and "left" style attributes. > > 2. Setting the "marginTop" and "marginLeft" style attributes. > > 3. Using "WebkitTransform". > > Use WebKitTransform but with a 3d transform type, like (in JS) > element.style.webkitTransform = 'translate3d(' + x + 'px, ' + y + 'px, > 0)'; > > In CSS this would be like: > > -webkit-transfrom: translate3d(100px, 100px, 0); > > Simon --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
