I've been playing with it a couple of days ago, and I'm really not happy how 
the momentums are being applied - sometimes they're being triggered for no 
reason whatsoever.

O.

On 28 May 2010, at 01:21, Barry van Oudtshoorn wrote:

> http://toweljs.org/
> 
> I saw this at Ajaxian, but not here! It's a library for MooTools that focuses 
> on improving event-based code, written by Scato Eggen. It looks quite 
> interesting; you can do things like this:
> 
> $ready().add(function() {
>     var dragable = $('example-skid-dragable');
> 
>     var down = $towel(dragable).ui.down(); 
>     var follow = $towel(dragable).fx.follow();
>     var skid = $towel(dragable).phys.skid();
> 
>     down.add(follow);
>     down.not().add(skid);
> }); 
> 
> This will allow you to drag a node around, and have it keep moving 
> (decelerating) in the direction of travel for a short while, which is pretty 
> cool, especially in so few lines of code.
> 
> To be honest, some of the syntax doesn't quite sit with me; for example, 
> writing
> var event = $event(request, 'complete')
> just seems, well, backwards -- it's a more procedural, rather than OO, style, 
> at least to my mind.
> 
> Thoughts?
> 
> - Barry van Oudtshoorn
> www.barryvan.com.au
> -- 
> Not sent from my Apple πPhone.

Reply via email to