Unexpected scrollbarDrag message

Peter Haworth pete at lcsql.com
Wed May 22 18:32:43 EDT 2013


I have a card with a number of slider scrollbars on it and a scrollbarDrag
handler in the card script to deal what happens when any of the sliders are
moved.  I also have a field associated with each scrollbar which receives
the thumbpos of its associated slider.  All that works fine

However, if I click into the slider value field, my card level
scrollbardrag message is triggered with a value of 1.  I also see that the
message is coming from the value field.

If I get rid of the scrollbardrag message at the card level and put it into
the script of each individual slider, the problem goes away.  If I put a
scrollbardrag handler into the script of the value fields, it is triggered
as soon as I click into the field.

The value fields do not have any scrollbars enabled, do not have a behavior
script, and there are no other scripts in the messagepath between them and
the card.

I'm sure this is not an intended behavior?


Pete
lcSQL Software <http://www.lcsql.com>



More information about the use-livecode mailing list