disable mousedoubleup
Devin Asay
devin_asay at byu.edu
Tue Mar 11 11:44:50 EDT 2014
On Mar 11, 2014, at 9:09 AM, Björnke von Gierke <bvg at mac.com> wrote:
> Hi
>
> I wanted to disable mousedoubleup for a short time on a specific object, but it seems it's not possible to do this whit the doubleclickinterval, as that is not available on windows.
>
> The problem is of course that in this stack people will click very fast and the double events will then "swallow" some of the interactions. Is there any other workaround to react to the mouse events, but none of the double ones?
>
Björnke,
Could flushEvents() be helpful in this situation?
Maybe something like this:
on mouseDoubleUp
send "mouseUp" to me
end mouseDoubleUp
on mouseUp
# if the handler hasn't finished, or some predetermined time period hasn't elapsed:
flushEvents("mouseUp")
end mouseUp
Not tested, just thinking out loud.
Regards,
Devin
Devin Asay
Learn to code with LiveCode University
http://university.livecode.com
More information about the use-livecode
mailing list