http://www.tabqwerty.com/2010/04/08/supporting-mouse-events-in-mobile-safari.html

Check it out.


On 6 Jun 2010, at 08:18, Matthew Hazlett wrote:

> This question may be outside the scope of this group.  I am making my first 
> attempt at writing an iphone app using mootools and phonegap. 
>  
> One of the first things I noticed was the lack of support for locally testing 
> things in a browser.   So I decided to create an events class that would map 
> normal mouse events to mouse gesture like events.   This part works great!
>  
> The next part of the class was to add the touchevents to the mootools events 
> so you could do things like:
>  
> document.id("myDiv").addEvent("touchstart", function() { //do somthing} );
>  
> this aspect of the class I created is not working as all.  I am at a loss, 
> from what I can see it should be working.
>  
> Here is the code, try it from any browser then try it from an iphone/ipad:
> http://mootools.net/shell/L3Bb5/1/
>  
>  

Reply via email to