Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #8412

Re: Using Both click and dblClick Events

From Gene Wirchenko <genew@ocis.net>
Newsgroups comp.lang.javascript
Subject Re: Using Both click and dblClick Events
Date 2011-11-18 14:13 -0800
Organization A noiseless patient Spider
Message-ID <btldc7lv6v4bq7robsddcbonebd1i8g0qc@4ax.com> (permalink)
References <7gmbc7lfmro7r99ijbr77a2c8gkvr9lmc8@4ax.com> <92ddc7tfq17qreeu97q9mh122vbtdhmp8c@4ax.com> <timstreater-3BBFE3.20242518112011@news.individual.net> <0bgdc79d6cpkgaqcpua97jspdrn6vt911b@4ax.com> <timstreater-F17AD0.21181918112011@news.individual.net>

Show all headers | View raw


On Fri, 18 Nov 2011 21:18:19 +0000, Tim Streater
<timstreater@greenbee.net> wrote:

>In article <0bgdc79d6cpkgaqcpua97jspdrn6vt911b@4ax.com>,
> Gene Wirchenko <genew@ocis.net> wrote:

[snip]

>>      I am wondering about which events get revealed.  If JavaScript
>> (or Windows) held onto the click until the time for a doubleclick had
>> expired before firing click, the problem with doubleclicking would not
>> occur.  Maybe.
>
>But then there would have to be a noticeable delay before any 
>single-click action was allowed to proceed. I can't remember the exact 
>reasoning when developing this aspect for my app, but I know I wanted to 
>clearly separate single and double-click actions. So in my case I had to 
>accept that there would be a delay for single-click actions. But there 
>are plenty of situations where that wouldn't apply so you don't want to 
>penalise those too.

     I know.  I suspect, now having thought about it a bit more, that
Windows does not ever have anything significant happen with both
events.  Clicking on something can give it focus.  Big deal.  This
does not make a change.

     What we do not see -- correct me if you have an example -- of
where both click and doubleclick do something significant.  For
example, click executing the object and doubleclick opening it in
NotePad.  If this is so, then it is a bit of smoke and mirrors.

Sincerely,

Gene Wirchenko

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Using Both click and dblClick Events Gene Wirchenko <genew@ocis.net> - 2011-11-17 20:10 -0800
  Re: Using Both click and dblClick Events Denis McMahon <denismfmcmahon@gmail.com> - 2011-11-18 07:59 +0000
  Re: Using Both click and dblClick Events Tim Streater <timstreater@greenbee.net> - 2011-11-18 10:34 +0000
  Re: Using Both click and dblClick Events John G Harris <john@nospam.demon.co.uk> - 2011-11-18 16:30 +0000
  Re: Using Both click and dblClick Events Gene Wirchenko <genew@ocis.net> - 2011-11-18 11:40 -0800
    Re: Using Both click and dblClick Events Tim Streater <timstreater@greenbee.net> - 2011-11-18 20:24 +0000
      Re: Using Both click and dblClick Events Gene Wirchenko <genew@ocis.net> - 2011-11-18 12:36 -0800
        Re: Using Both click and dblClick Events Tim Streater <timstreater@greenbee.net> - 2011-11-18 21:18 +0000
          Re: Using Both click and dblClick Events Gene Wirchenko <genew@ocis.net> - 2011-11-18 14:13 -0800
            Re: Using Both click and dblClick Events Tim Streater <timstreater@greenbee.net> - 2011-11-18 22:24 +0000
            Re: Using Both click and dblClick Events John G Harris <john@nospam.demon.co.uk> - 2011-11-22 15:23 +0000

csiph-web