Yea, that is exactly what I am trying to avoid. Thanks though.

On Jul 12, 2:02 pm, Shadow <shadowcree...@gmail.com> wrote:
> Very simple so I will only give pseudo-code:
>
> global var isSingleClick = false, checkRef = null;
>
> onClick {
>   isSingleClick = !isSingleClick;
>   if( checkRef != null )
>     clearTimeout( checkRef );
>   checkRef = setTimeout( 500ms, maybeHandleClick() );
>
> }
>
> onDblClick {
>   isSingleClick = false;
>
> }
>
> maybeHandleClick () {
> if( isSingleClick )
>    handleClick();
>
> }
>
> Hack to your satisfaction, but that is the general idea...
>
> Hope this helps
> -Shadow

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to