Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #28472
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Move a div with mouse |
| Date | 2015-07-26 13:36 +0200 |
| Organization | PointedEars Software (PES) |
| Message-ID | <4895006.8eMfdVOhHN@PointedEars.de> (permalink) |
| References | (2 earlier) <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> |
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