Fun with mouse gestures in javascript

Oct 16, 2005 17:02

Rotate the goats using mouse gestures and watch them dance:

http://bradfitz.com/hacks/gestures/

I'm starting to feel confident in JavaScript (the language), and my JavaSript-the-client-environment is getting better.

javascript, tech

Leave a comment

Comments 13

kunzite1 October 17 2005, 00:12:28 UTC
next thing to work on would be to make it so it will actually rotate them further than 90 degrees based upon the distance traveled by the mouse.
if that's possible of course.

Reply

brad October 17 2005, 00:21:05 UTC
That's not a common use case so I think it'd only lead to more accidents.

FYI, this will be used as another way to let people rotate their pictures in Fotobilder/Scrapbook. A surprising number of modern digital cameras (an uh, all analog cameras) don't have orientation sensors.

I was just having to rotate a couple hundred pictures for a friend who sent me a photo CD without EXIF data and got a little annoyed. :-)

Reply

kunzite1 October 17 2005, 00:24:16 UTC
not a common use case? very true.

new fb rotating stuff? awesome. the current interface with the buttons works but this would be quicker for the user.

and yeah, that would have taken quite some time. always good to figure out new ways to make the computer do the work for you.
unfortunately, the person has to come up with what the computer has to do first. XD

Reply

mpnolan October 17 2005, 00:53:38 UTC
Awesome. I love it when software is designed around how things should work rather than around how things are typically done.

Reply


(The comment has been removed)

brad October 17 2005, 00:19:20 UTC
I noticed that too. Let's call it an easter egg bonus feature.

Reply

(The comment has been removed)

brad October 17 2005, 01:00:50 UTC
I only have Safari 1.3.1 (v312.3.1) at home, where it seems fine. So I assume you're talking about Safari 2?

Reply


mart October 17 2005, 09:12:32 UTC

While that's neat, I can't help but think it would be more intuitive just to have "rotate left" and "rotate right" buttons. I'm not too hot at making little circular motions with my mouse because it's not a motion I do very often.

Reply

brad October 17 2005, 16:27:14 UTC
There will still be rotation buttons. This is just another way.

Reply


cjcollier October 18 2005, 05:50:50 UTC
you're pretty cool, brad

Reply


Leave a comment

Up