dev /
Dragdealer JS
The extra mile
A few weeks ago I posted a JavaScript Slider component, the same I used for my comment button. One problem was that it lacked touch support and therefore was unusable on mobile phones. But the surprise came when a friendly chap named Pratik implemented it without even me knowing, then contacted me to share his contribution. I then saw the potential and decided to take it to the next step.
Obviously, I had to come up with a less vanilla name than Slider, but I wanted it to be something smart. The ongoing name brainstorming spanned over a few days, but after a bunch of uninspired combinations, it finally hit me. Presenting: Dragdealer JS, drag provider – the good stuff.
I chose Google Code for hosting. This is the project page: code.google.com/p/dragdealer/, where you can find the repository and the files to download, but I also have an internal project page with more in-depth details and demos: code.ovidiu.ch/dragdealer/.
So what does it do?
A LOT. Really. While the base code is mainly the same, It's extended to another dimension... literally, it's 2d now. Basically it gets dragged, tapped, even somehow stretched; then it slides, snaps, responds and reacts (I'm talking about the callbacks and the runtime methods). And of course, it has the touch support that Pratik originally added.
If you have a touch device at hand try the comment slider below, which is now a Dragdealer implementation, and let me know what device/browser did you manage to post from.
Yeah baby, I'm bringing the JavaScript back!
© June 2010 Ovidiu Cherecheș
+Reply
Posted May 2012, by Luke Channings