Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #28472
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Move a div with mouse |
| Date | Sun, 26 Jul 2015 13:36 +0200 |
| Organization | PointedEars Software (PES) |
| Lines | 28 |
| Message-ID | <4895006.8eMfdVOhHN@PointedEars.de> (permalink) |
| References | <mola7b$fmu$1@dont-email.me> <24793803.Cl0v73UULg@PointedEars.de> <mou5ap$180$1@dont-email.me> <13075758.S88mDJZToQ@PointedEars.de> <mp0i2h$aq4$1@dont-email.me> <2686661.kNTyxH5vvL@PointedEars.de> <mp2e8i$ln0$1@dont-email.me> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| X-Trace | solani.org 1437910766 13598 eJwNykkBACAIBMBKyOnGQYT+EXTeY+LLK9TN1camGcxLIqmo0DmYjb4VwK0/tnYcgkqbuEo+ICoRGg== (26 Jul 2015 11:39:26 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Sun, 26 Jul 2015 11:39:26 +0000 (UTC) |
| User-Agent | KNode/4.14.2 |
| X-User-ID | eJwFwQkBwDAIA0BLoxCgchoe/xJ2B3XxCnO4YbFc1BQmtYfx7J6oUiEgTT6rdueyObr4PBu1MXlf4DaP/JWlFxs= |
| Cancel-Lock | sha1:uxfgNo66oV6SlfGERMITDU2ClUg= |
| X-NNTP-Posting-Host | eJwFwYEBwCAIA7CbVNqOcxDL/ycsweFiKwgGBnOXXEI/HiTTNp6q7T3Ncx3abs5XihQCPzSCEbM= |
| Xref | csiph.com comp.lang.javascript:28472 |
Show key headers only | View raw
danca (Daniele Campagna) wrote: > Il 07/25/2015 08:54 PM, Thomas 'PointedEars' Lahn ha scritto: >> Your code most certainly does not work in Chrome because you are >> assigning to .onmousemove after you called .addEventListener() for the >> same target, which adds *two* event listeners for the same event and >> target: the listener added with .addEventListener() is added after the >> one assigned to .onmousemove. (As I showed earlier this year.) >> >> And it probably does not work in Chrome because your feature test is >> wrong again, a faulty inference: you are testing “window.event” but >> access “e.clientX”, and you are testing “event”, but you are accessing >> “event.pageX”. Debugging should show the underlying assumptions to be >> wrong in the offending runtime environments. > > Hummmmm... Interesting [guess: in the second sentence I should read > "Safari"?]. I have not tested in Safari, but it is probable that the same logic applies there because Safari is based on WebKit, too. The main difference between the first and second _paragraph_ is the certainty of the former and the mere probability of the latter (IMO). -- PointedEars FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix> Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Move a div with mouse "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-07-21 13:26 +0200
Re: Move a div with mouse Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-24 20:36 +0200
Re: Move a div with mouse "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-07-24 21:58 +0200
Re: Move a div with mouse Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-25 14:07 +0200
Re: Move a div with mouse "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-07-25 19:47 +0200
Re: Move a div with mouse Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-25 20:54 +0200
Re: Move a div with mouse "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-07-26 12:54 +0200
Re: Move a div with mouse Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-26 13:36 +0200
csiph-web