jQuery – draggable images on iPad / iPhone – how to integrate event.preventDefault();?

Try this library https://github.com/furf/jquery-ui-touch-punch Just follow these simple steps to enable touch events in your jQuery UI app: Include jQuery and jQuery UI on your page. <script src=”http://code.jquery.com/jquery.min.js”></script> <script src=”http://code.jquery.com/ui/1.8.17/jquery-ui.min.js”></script> Include Touch Punch after jQuery UI and before its first use. Please note that if you are using jQuery UI’s components, Touch Punch must be … Read more

Disable or prevent multitouch in Activity

The easiest way I found to force single touch across an entire app is to set it using a theme: <style name=”MyTheme” parent=”@android:style/Theme.Holo.Light”> <item name=”android:windowEnableSplitTouch”>false</item> <item name=”android:splitMotionEvents”>false</item> </style> Manifest: <application android:label=”@string/app_name” android:theme=”@style/MyTheme” >

How to disable multitouch?

If you want only one button to respond to touches at a time, you need to set exclusiveTouch for that button, rather than for the parent view. Alternatively, you could disable the other buttons when a button gets the “Touch Down” event. Here’s an example of the latter, which worked better in my testing. Setting … Read more

Observing pinch multi-touch gestures in a UITableView

This seems to be a classic problem. In my case I wanted to intercept some events over a UIWebView which can’t be subclassed, etc etc. I’ve found that the best way to do it is to intercept the events using the UIWindow: EventInterceptWindow.h @protocol EventInterceptWindowDelegate – (BOOL)interceptEvent:(UIEvent *)event; // return YES if event handled @end … Read more

enable/disable zoom in Android WebView

On API >= 11, you can use: wv.getSettings().setBuiltInZoomControls(true); wv.getSettings().setDisplayZoomControls(false); As per the SDK: public void setDisplayZoomControls (boolean enabled) Since: API Level 11 Sets whether the on screen zoom buttons are used. A combination of built in zoom controls enabled and on screen zoom controls disabled allows for pinch to zoom to work without the on … Read more