Under certain conditions a button will not receive mouseUp when the mouse is lifted in the button, and the button will continue to issue a stream of mouseStillDown messages. The hilite stays true. Also, there is no mouseRelease message. I have only seen this in OS X with RR 2.6.1 and 2.8.1.
This occurs when you have a handler like
on getData
write "xxx" to socket "y"
read from socket "y" for 128
put it
send getData to me in 250 milliseconds
end getData
It seems that if the mouse is lifted while in the socket commands, the mouseUp message is never sent and RR thinks the mouse is depressed, even though "the mouse" is "up". Attempting to do non-blocking reads, with
read from socket "y" for 0
does not help. I don't see this problem in Windows standalones generated from the Mac.
Any ideas how to avoid this?
mouse bug?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
jwkuehne,
This is not a bug. Your script still blocks while reading from the socket. Try "read... with message..." instead.
Best,
Mark
This is not a bug. Your script still blocks while reading from the socket. Try "read... with message..." instead.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode