views:

26

answers:

1

Something like this perhaps?

$('#drag').draggable({
    shake: function(){
        alert('Shake event invoked');
    }
});
A: 

You might be able to implement that using some mouse gesture recognizing software.

One implementation is the $1 Unistroke Recognizer.

Moousture may also work for this.

Of course, you could also roll your own by calculating direction changes and using a timout to determine when enough of them have occurred within a suitably short period of time to constitute a shake.

Good luck!

jimbojw