I'm trying to get a "scrolling div" effect using MochiKit.Visual's Move in conjunction with a DIV styled w/ "overflow: hidden". I have mouseover events connected to "forward" and "back" images that trigger a new Move object, moving the content in the div in the appropriate direction. Depending on the direction, the Move constructor takes an option hash with x either being the number of pixels to move the div all the way to left or all the way to the right. This way, the movement smoothly stops as soon as the beginning or end of the content is reached.
Works pretty well, except I can't figure out how to elegantly stop the movement on mouseout. I tried triggering another Move with the effects queue set to 'break', and while this does stop movement, it causes some disconcerting jumping. (And even if it did work, it still strikes me as a terrible hack.) What's the correct way to do this, or is there a correct way to do this? And if I'm completely abusing the Move function and there's a better way to do this, feel free to point that out, too. ;) I know there's other scrolling div libs out there, but since I'm already using MochiKit, it'd be nice to use it if it can do it. Thanks in advance! Keith --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit -~----------~----~----~----~------~----~------~--~---
