Sure.

Here's some documentation on evt.preventDefault: 
https://developer.mozilla.org/en/DOM/event.preventDefault

Here's a bug report related to the SVG drag issue in Firefox: 
https://bugzilla.mozilla.org/show_bug.cgi?id=525591

That's about all I know of it.

Cheers,

Jake

On 11-01-17 07:34 PM, gb_n_svg wrote:
>
> Jake - Thank you!
>
> I have checked in Chrome, and adding "evt.preventDefault();" into the 
> onmousedown event handler stops the flickering text highlight.
>
> I have checked in Firefox 4b9, and adding "evt.preventDefault();" into 
> the onmousedown event handler stops the wierd text drag thing.
>
> Excellent, and thank you.
>
> Would you recommend something I should look at to get a better 
> understanding of what is going on?
>
> GB
>
> --- In svg-developers@yahoogroups.com 
> <mailto:svg-developers%40yahoogroups.com>, "gb_n_svg" <gbulmeruk@...> 
> wrote:
> >
> > Jake - Thanks for the advice.
> >
> > Is the "evt.preventDefault();" called on *EVERY* mouse event, or 
> only once, initially in an "onload", or something?
> >
> > GB
> >
> > --- In svg-developers@yahoogroups.com 
> <mailto:svg-developers%40yahoogroups.com>, Jacob Beard <jbeard4@> wrote:
> > >
> > >
> > >
> > > On 11-01-17 05:21 PM, GB wrote:
> > > >
> > > > Firefox often (but not always) creates a text 'drag rectangle' and
> > > > when mouse-up, the rectangle disappears, and the dragged 'use'
> > > > elements 'jump' to the cursor. So the whole set of events are
> > > > propagated, but after the button is released, and the mouse-up is
> > > > lost, which is very awkward.
> > > >
> > > You can disable this behaviour in Firefox by calling
> > > evt.preventDefault(); in the event handler. This might also 
> disable and
> > > normalize the other browser behaviours you mentioned, but I'm not 
> sure.
> > > If you have success with this, please be sure to post your 
> experiences here.
> > >
> > > Jake
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
>
> 


[Non-text portions of this message have been removed]



------------------------------------

-----
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    svg-developers-dig...@yahoogroups.com 
    svg-developers-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    svg-developers-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to