Drag-scrolling a group

Scott Rossi scott at tactilemedia.com
Thu Jul 11 15:01:27 EDT 2013


Hi Devin:

Maybe something like this is what you're after - in your message box:
go url "http://www.tactilemedia.com/download/dragscroll.rev"

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 7/11/13 11:28 AM, "Devin Asay" <devin_asay at byu.edu> wrote:

>
>On Jul 11, 2013, at 12:10 PM, Roger Eller wrote:
>
>> Can it be done math-free?  If you nest a group inside the scrollable
>>locked
>> group, and set the nested group to a simple "grab me" in a mouseDown or
>> mouseStillDown handlerŠ
>
>While I appreciate the math-free approach, ;) grab isn't the best tool
>here, because it lets you drag the group contents beyond the bounds you
>want to show. Setting the scroll values, on the other hand, prevents that
>problem.
>
>BTW, in the meantime I discovered that lock screen fixes most of my
>problems:
>
>on mouseMove pNewMouseH, pNewMouseV
>    if sDragging then
>        lock screen
>        set the hScroll of me to the hScroll of me - (pNewMouseH -sMouseH)
>        set the vScroll of me to the vScroll of me - (pNewMouseV -
>sMouseV)
>        unlock screen
>    end if
>end mouseMove
>
>I'm still interested in other people's solutions to this. I can't imagine
>I'm the only one who's ever tried this.
>
>Devin
>
>Devin Asay
>Learn to code with LiveCode University
>http://university.livecode.com
>
>
>
>
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode
>






More information about the use-livecode mailing list