Return-Path: X-Original-To: apmail-pivot-user-archive@www.apache.org Delivered-To: apmail-pivot-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36EA7471 for ; Fri, 6 May 2011 09:10:41 +0000 (UTC) Received: (qmail 52595 invoked by uid 500); 6 May 2011 09:10:41 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 52585 invoked by uid 500); 6 May 2011 09:10:41 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 52569 invoked by uid 99); 6 May 2011 09:10:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2011 09:10:40 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [195.159.29.9] (HELO mailstore05.sysedata.no) (195.159.29.9) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2011 09:10:31 +0000 Received: from [212.251.226.56] (helo=[10.0.1.190]) by mailstore05.sysedata.no with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QIH34-0006T5-Ue for user@pivot.apache.org; Fri, 06 May 2011 11:10:10 +0200 Message-ID: <4DC3BAF3.5050502@sysedata.no> Date: Fri, 06 May 2011 11:10:11 +0200 From: Edvin Syse User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nb-NO; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: user@pivot.apache.org Subject: Re: Mouse double click event triggers two mouseClick() call? References: <4DC3AA5C.9050903@dsforge.net> In-Reply-To: <4DC3AA5C.9050903@dsforge.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Den 06.05.2011 09:59, skrev Joe Minichino - TechFort: > I'm sure there is a more elegant solution but in the meantime, won't > something like this work for you: > > if(count==1){ > if(count==2){ > // double click > } else { > // single click > } > } > > just catch them in reverse order ;) > joe This makes no sense - the "if (count == 2)" will never be true. -- Edvin