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


Groups > comp.lang.javascript > #38866

Re: Stop the mouse listener

Path csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost2.xs4all.net!not-for-mail
Newsgroups comp.lang.javascript
Subject Re: Stop the mouse listener
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <a9143f95-5e0b-404f-b734-776ce6a3feb9o@googlegroups.com> <8zsym7odbn9r.1b62v3cn8pck0$.dlg@40tude.net> <f9510aee-24b1-4fc7-8fee-7c6e6e0fcc4bo@googlegroups.com> <ht32qcFf7auU1@mid.individual.net> <e086c107-6fb0-44ba-9c4f-09cfe4db1575o@googlegroups.com> <74460df3-6973-4fe2-bb7c-2610c22f2228o@googlegroups.com> <8ed3c65d-8275-42cd-8ce5-e55330f05264o@googlegroups.com> <eeea2690-6b0f-42dd-beba-82c320bfdfa2o@googlegroups.com> <8547b038-7a8d-419f-b4a8-91942b5a5891o@googlegroups.com> <75caf153-67ea-4572-a707-1784128c97f7o@googlegroups.com> <3c1f5763-4853-4a10-a88a-9067b5d79e60o@googlegroups.com>
Date Fri, 25 Sep 2020 13:43:36 +0200
Message-ID <XnsAC438BA2EA80eejj99@194.109.6.166> (permalink)
User-Agent Xnews/2009.05.01
Lines 32
NNTP-Posting-Host af24d51a.newszilla.xs4all.nl
X-Trace G=Clis/Gig,C=U2FsdGVkX18k3wSwkNzVd1wYpf6c+sM0YxMhdNp+Aw+0p6CNu1lXNZEKxg1qGhfCJYOwc/IcjU19jHvkn7fcRl1trac5mOR+A371QIgxj8+p1C8hcPtaR+n20+cUqXH3
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.javascript:38866

Show key headers only | View raw


<jonas.thornvall@gmail.com> wrote on 24 Sep 2020 in comp.lang.javascript:

> Solved....
> if(locked==false){ mousedown_logic();} else {}

How strange are your thought patterns, 

what is the use of:

    	else {} ?

'locked' is not an explanatory name.

===========================

Better make it part of your mousedown execution:

let noMouseDownExecution;

noMouseDownExecution = true; // or false

function mousedown_logic() {
    	if (noMouseDownExecution) return;

    	// execution
};


-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

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


Thread

Stop the mouse listener Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-09-23 00:16 -0700
  Re: Stop the mouse listener Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-09-23 00:31 -0700
  Re: Stop the mouse listener JJ <jj4public@gmail.com> - 2020-09-23 18:49 +0700
    Re: Stop the mouse listener Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-09-23 05:42 -0700
      Re: Stop the mouse listener Silvio <silvio@internet.com> - 2020-09-23 20:25 +0200
        Re: Stop the mouse listener Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-09-23 15:22 -0700
        Re: Stop the mouse listener Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-09-23 15:31 -0700
      Re: Stop the mouse listener Arno Welzel <usenet@arnowelzel.de> - 2020-09-24 10:14 +0200
        Re: Stop the mouse listener Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-09-24 02:38 -0700
          Re: Stop the mouse listener Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-09-24 02:45 -0700
          Re: Stop the mouse listener Arno Welzel <usenet@arnowelzel.de> - 2020-09-24 19:43 +0200
        Re: Stop the mouse listener Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-09-24 02:42 -0700
        Re: Stop the mouse listener Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-09-24 02:52 -0700
          Re: Stop the mouse listener luserdroog <luser.droog@gmail.com> - 2020-09-24 08:32 -0700
            Re: Stop the mouse listener Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-09-24 08:59 -0700
              Re: Stop the mouse listener luserdroog <luser.droog@gmail.com> - 2020-09-24 09:08 -0700
                Re: Stop the mouse listener Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-09-24 09:25 -0700
              Re: Stop the mouse listener Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-09-24 09:09 -0700
                Re: Stop the mouse listener luserdroog <luser.droog@gmail.com> - 2020-09-24 09:53 -0700
                Re: Stop the mouse listener Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-09-24 10:00 -0700
                Re: Stop the mouse listener Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-09-24 10:02 -0700
                Re: Stop the mouse listener Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-09-24 13:10 -0700
                Re: Stop the mouse listener "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-09-25 13:43 +0200
                Re: Stop the mouse listener Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-09-25 08:44 -0700
            Re: Stop the mouse listener Julio Di Egidio <julio@diegidio.name> - 2020-09-24 11:28 -0700
              Re: Stop the mouse listener Silvio <silvio@internet.com> - 2020-09-24 23:19 +0200
                Re: Stop the mouse listener Julio Di Egidio <julio@diegidio.name> - 2020-09-24 14:51 -0700
              Re: Stop the mouse listener John G Harris <niam@jghnorth.org.uk.invalid> - 2020-09-25 11:15 +0100
                Re: Stop the mouse listener "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-09-25 13:31 +0200
              Re: Stop the mouse listener luserdroog <luser.droog@gmail.com> - 2020-09-25 11:01 -0700
                Re: Stop the mouse listener Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-09-25 11:06 -0700
                Re: Stop the mouse listener luserdroog <luser.droog@gmail.com> - 2020-09-25 11:15 -0700
                Re: Stop the mouse listener Julio Di Egidio <julio@diegidio.name> - 2020-09-26 04:41 -0700
                Re: Stop the mouse listener Julio Di Egidio <julio@diegidio.name> - 2020-09-26 04:46 -0700
                Re: Stop the mouse listener Julio Di Egidio <julio@diegidio.name> - 2020-09-26 04:33 -0700
                Re: Stop the mouse listener luserdroog <luser.droog@gmail.com> - 2020-09-26 09:32 -0700
                Re: Stop the mouse listener Julio Di Egidio <julio@diegidio.name> - 2020-09-26 11:05 -0700

csiph-web