/    Sign up×
Community /Pin to ProfileBookmark

Multiple Mouse Events

If you’ve caught a mouse event (say, onmousemove) and you’re currently in the process of handling that event, is it possible for that, or another, mouse event handler to get hit again, at the same time that you’re handling the previous event? Or is it guaranteed that no additional events will actually call any of your event handlers until your code returns from handling the prior event?

That is, is it strictly sequential processing, or can they occur simultaneously?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@WebnerdJan 09.2010 — Using jQuery you can bind events and use stopImmediatePropagation() to terminate any further listeners from firing. This article talks a good detail about events:

http://www.quirksmode.org/js/events_order.html
Copy linkTweet thisAlerts:
@RogerInHawaiiauthorJan 09.2010 — My question was not about the order of events or of how they propagate up or down the hierarchy of nested objects. My question is whether or not it is possible for an event handler to get called (due to some additional event getting fired) while at the same time my code is already processing a prior event and has not yet returned from that event processing code.
×

Success!

Help @RogerInHawaii spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...