mouseWithin and mouseLeave problem

Kaveh Bazargan kaveh at
Wed Nov 15 12:36:46 EST 2017

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

Suggestion please?


Kaveh Bazargan
River Valley Technologies <> • Twitter
<> • LinkedIn
Phone +44 7771 824 111

More information about the use-livecode mailing list