Haha Oskar you might be tired of asking for jsfiddle demos :D
Good job!!! (really!)


Erik, you'll need to use the Drag Class and do some additional stuff. You'll
mostly have to attach a mousemove event on the area when the user mousesdown
on it, and show (display:block) the div with the selection. On the mousemove
event youll change the size of the selection div depending on the position
of the mouse (event.page.x and event.page.y).

Does that answer your question?

Cya around.

--
Fábio Miranda Costa
Solucione Sistemas
Engenheiro de interfaces
Twitter: fabiomiranda
http://solucione.info


On Fri, Jun 11, 2010 at 2:14 PM, Erik Terpstra <[email protected]> wrote:

> Thanks, that's a really nice tool.
>
> Here's the link: http://jsfiddle.net/aMw5a/
>
> On Jun 11, 6:10 pm, Oskar Krawczyk <[email protected]> wrote:
> > Create a demo on jsfiddle.net and paste back a link.
> >
> > ___
> >
> > Oskar Krawczykhttp://nouincolor.com
> >
> >
> >
> > On Fri, Jun 11, 2010 at 4:10 PM, Erik Terpstra <[email protected]> wrote:
> > > Hi,
> >
> > > I am trying to find a way to draw a selection while dragging the
> > > mouse.
> >
> > > Currently I have this:http://gist.github.com/434587
> >
> > > But what I am trying to accomplish is hiding the selection by default
> > > and show it on the mouse position when a user starts dragging
> > > somewhere on the page.
> >
> > > Any suggestions on how to do this?
> >
> > > TIA,
> >
> > > Erik.
>

Reply via email to