Moving image on when drawing/dragging

16 views
Skip to first unread message

Ronny Gabler

unread,
Nov 30, 2009, 11:18:33 AM11/30/09
to imgmap-discuss
I just downloaded plugin_tinymce3_108.zip. It works just fine! I
wanted to create an area by pressing the mouse button, holding it down
and drawing the area, but newer browsers start to drag the image,
which users don't expect (at least i think so). I added the following
line at the beginning of imgmap.prototype.img_mousedown:
if (e.preventDefault) e.preventDefault();
This prevents the browser from starting the image drag.
Hope this helps. Ronny

Adam Maschek

unread,
Nov 30, 2009, 12:20:49 PM11/30/09
to imgmap-discuss
Thanks Ronny,

Good stuff, this can be useful, although to tell what users expect is
a bit tricky, maybe some really do want to drag the image:)
I also think it is better to include this in the default_interface.js,
instead of the imgmap.js, since it is more related to the UI than the
actual mapping core.

Adam
Reply all
Reply to author
Forward
0 new messages