Activate your free membership today | Log-in

Thursday, October 29th, 2009

S2.enableMultitouchSupport = true; // Getting touchy feely with scripty

Category: Prototype, Scriptaculous

Thomas Fuchs has been working with Nokia on their multi-touch API for Qt/WebKit:

scripty2 supports multiple API vendors for Multitouch events, and even provides a desktop emulation (click+drag to pan, shift+click+drag to scale and rotate)– so you can try this out even without having multitouch hardware at your disposal.

Currently the scripty2 API abstraction event supports Desktop emulation, Nokia Starlight and Apple iPhone Mobile Safari. With just one API, you can now multi-touch enable any web application easily, just check out the demos.

In a recent update to scripty2, I’ve also introduced automatic support for WebKit CSS transitions, so whenever scripty2 effects are used and CSS transitions are available, the effects engine will automatically do the right thing for you.

All in all, using this in your web sites or apps boils down to just a couple of lines of code:

JAVASCRIPT:
  1.  
  2. $('element').observe('manipulate:update', function(event){
  3.   $('element').transform(event.memo).setStyle({
  4.      left: event.memo.panX+'px', top: event.memo.panY+'px'
  5.   });
  6. });
  7.  

Posted by Dion Almaer at 6:56 am
7 Comments

++---
2.1 rating from 56 votes

7 Comments »

Comments feed TrackBack URI

I wonder when will IE support this…

:D

Comment by cope — October 29, 2009

@cope – When one of the myriad “render my html in flash” programs gets advanced enough and implements the w3c device api. Or when someone does effectively the same thing by recompiling fennec to actionscript using alchemy. I’ve come to see flash not as an enemy, but as an autoupdating trojan horse for IE.

This scripty2 multitouch stuff is wonderful, _the_ killer app for scripty2 so far. One step closer to breaking down the barrier between mobile webapps and mobile native aka one less reason to risk appstore approval wrath.

Comment by rdza — October 29, 2009

Nice

Comment by MichaelSchoeler — November 2, 2009

WZZ

cheap wow gold Nigerian Ministry cheap wow gold of Communications aion gold and China signed
metin2 yang a supplementary
aion4gold agreement to Aion Kina the railway

Comment by WZZZ — November 3, 2009

One day in Aprila man standing in the streets of New York, pulled out a brick of about two big mobile phone, and began to talk. This person is the inventor of mobile phones Martin.Empire Spagetti Organza Wedding Dress Library Park – when he was Motorola’s engineering and technical personnel. This was one the world’s firstMermaid Allover Lace Satin Wedding Dress mobile phone.the U.S. Federal Communications Commission (FCC) to inexpensive bridesmaid dressesdetermine the land mobile telephone communications,and high-capacity cellular column wedding dressesmobile phone spectrum for mobile phones commercially ready. In 1979, Japan opened the world’s first cellular telephone network. In 1982 established the European GSM (Mobile Communications Special Section) in the first in the modern sense could be commercially available mobile phone was born.Empire Pleated Satin Chiffon Wedding DressIt is the power supply and antenna placed in a box, weighing about 3 kg.Shape close to the modern mobile phone, you was born in 1987. Its weight is still about 750 grams, with today’s cell phone weighs just 60 grams compared to, like a big brick.wedding dress

Comment by wuwei — November 9, 2009

and the buy aion gold security aion power levelingofjustice. roll forming machinewe have buy wow goldalso come to this hallowed spot
shanghai escortto remindamerica cheap wow goldof the fierce urgency of now. this is no time to engagein the luxury of cooling off or

Comment by qqlovee — December 7, 2009

many thanks
i do like and spend a lot of time leraning about stuff on this site

Comment by Aphrodisiac — January 22, 2010

Leave a comment

You must be logged in to post a comment.