mouseWithin and mouseLeave problem

Mike Bonner bonnmike at gmail.com
Wed Nov 15 12:49:19 EST 2017


Look at mouserelease.. it should be sent to the scrollbar control if the
mouse is released outside the control area, so you should be able to use
the mouserelease message to reset your scrollbar to small size.


On Wed, Nov 15, 2017 at 10:36 AM, Kaveh Bazargan via use-livecode <
use-livecode at lists.runrev.com> wrote:

> I have a set of scrollbars that are normally small, to preserve screen
> space. But I want them to expand when mouse enters, so give finer control,
> then to shrink again when mouse leaves. I have managed to do this with
> mouseEnter and mouseLeave.
>
> Problem is that if I drag the thumb pointer with mouse down, by the time I
> release the mouse it is still down and outside the bounds of the target
> scrollbar, so no mouseLeave is sent.
>
> I could use "on idle" to test if the mouse is within, but that would not be
> efficient.
>
> Suggestion please?
>
> Regards
> Kaveh
>
> --
> Kaveh Bazargan
> Director
> River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
> <https://twitter.com/kaveh1000> • LinkedIn
> <https://www.linkedin.com/in/bazargankaveh/>
> Phone +44 7771 824 111
> _______________________________________________
> 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