Skip to content

Instantly share code, notes, and snippets.

@domi-papin
domi-papin / jquery-ui-draggable-touch-support
Created January 2, 2012 14:39
Add touch event support to jquery ui draggables AND faster clicks on touch devices as a bonus
/*
* picked from http://stackoverflow.com/questions/5186441/javascript-drag-and-drop-for-touch-devices
*
*/
function touchHandler(event)
{
// trick to add support for touch event to elements/widgets that do not support it
// by convetting convert touchevents into mouseevents
// only apply this trick to ui-draggable elements
@domi-papin
domi-papin / gist:1367363
Created November 15, 2011 15:39
css3 pie background parsing issue?
-pie-background url('themes/default/Images/puce-black.png') left 4px repeat-x, url('themes/default/Images/folded-corner-52x44.png') bottom right no-repeat, url('themes/default/Images/content-noise.png') repeat