Slip, sliding away
Mike Bonner
bonnmike at gmail.com
Mon Jul 25 09:25:25 EDT 2016
Another mousemove version..
local sDragging, sLastX
on mouseup
put false into sDragging
end mouseup
on mouserelease
put false into sDragging
end mouserelease
on mousedown
put true into sDragging
put item 1 of the mouseloc into sLastX
end mousedown
on mousemove px,py
if the mouse is down and sDragging then
put the hscroll of the owner of me - (px - sLastX) into tScroll
if tscroll > the width of me then put the width of me into tscroll
if tscroll < 0 then put 0 into tscroll
set the hscroll of the owner of me to tScroll
put px into sLastX
end if
end mousemove
On Mon, Jul 25, 2016 at 7:22 AM, Roger Guay <irog at mac.com> wrote:
> try putting the following script into each moving image:
>
> local tx, ty, dx
>
> on mousedown
> put item 1 of the loc of me into tx
>
> put item 2 of the loc of me into ty
>
> put tx- the mouseH into dx
>
> end mousedown
>
>
> on mouseMove x,y
>
> if the mouse is down then set the loc of me to x+dx, ty
>
> end mouseMove
>
>
> Cheers!
>
>
>
> > On Jul 25, 2016, at 5:54 AM, Richmond <richmondmathewson at gmail.com>
> wrote:
> >
> > See daft effort here:
> >
> > http://forums.livecode.com/viewtopic.php?f=7&t=27672
> >
> > Richmond.
> >
> > _______________________________________________
> > 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
>
> _______________________________________________
> 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