[jQuery] Re: Scrollable image in a div

2008-01-25 Thread pete higgins
Not offhand. In theory, mouse down triggers the bind(mousemove) and mouse up unbind's it, so you should not be seeing that behavior. There is a small typo in the args/invert checking above, i randomly added after pasting my test page into the email. var invert = (args ? (args.invert || false) :

[jQuery] Re: Scrollable image in a div

2008-01-25 Thread Dave Stewart
Pete, Great little plugin there! I've done teh same using vanilla JavaScript; have yet to convert it to jQuery but this is a nice insight. One problem (bug) is that you seem to have to click (then it freezes) then release to move around, then re-click to cancel. Do you know why the mouse handler

[jQuery] Re: Scrollable image in a div

2008-01-24 Thread pete higgins
here's a stab. use it the same as the link wrt the html/css, and then $("#mydiv").DragPane({}); or $("#mydiv").DragPane({ invert: true }); if the backwardness of it is annoying to you. leaving off the scrollbars would be a matter of styling the #myDiv node overflow:hidden jQuery.fn.DragPane = f

[jQuery] Re: Scrollable image in a div

2008-01-24 Thread chrismarx
maybe you could modify this to listen for mousemoves? http://www.freewebs.com/flesler/jQuery.ScrollTo/ On Jan 24, 10:57 am, "Rick Faircloth" <[EMAIL PROTECTED]> wrote: > I'd love to see that, too, but with the option to leave off > the scrollbars. (Which may be an option already, I didn't take

[jQuery] Re: Scrollable image in a div

2008-01-24 Thread Rick Faircloth
I'd love to see that, too, but with the option to leave off the scrollbars. (Which may be an option already, I didn't take time to look) Rick > -Original Message- > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of > bradrice > Sent: Thursday, January 24, 2008 9:5