/    Sign up×
Community /Pin to ProfileBookmark

(on)mousedown/(on)mousemove event problem dealing with <img>

I’m trying to be able to drag an image around the web page, but both IE and FireFox seem to refuse to handle events during any “click and move” operation on an img element.

All I got is a phorbiden sign and the interruption of all event handling. I’ve tried draging images from other webpages (like this forum) and noticed that firefox allows us to bookmark or go to the image url. I guess it can be helpful sometimes but it’s being a pain in the ass to me right now.

Any ideas to overcome this situation?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@HiDeWaYauthorJan 25.2007 — I just solved the problem. I was not returning false in the end of the event delegate.
×

Success!

Help @HiDeWaY 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,
)...