I am making a web-application which uses an inline SVG as its basic UI element. Some of the UI actions include selecting the text in the SVG, and dragging across the SVG. This works in Webkit and Presto, but Gecko refuses to cooperate. When I try to drag across the SVG in Firefox, it initiates a drag action with the whole SVG image. Is there a way to prevent this default behaviour?
相关问题
- Convert svg to geojson fails with ogr2ogr
- How to get coordinates of an svg?
- Changing color of SVG which was embedded using <
- Understanding svg's viewbox attribute
- Convert an inline SVG into a SVG file
相关文章
- Firefox remembering radio buttons incorrectly
- Make marker-end same color as path?
- How to display unicode in SVG?
- Converting svg to png with inkscape command line f
- X/Html Validator in PHP
- How to create an SVG Matrix without an SVG element
- rect collision detection d3js
- CSS Firefox box-shadow and outline
This behaviour is described in the following bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=525591
You can fix this by calling preventDefault() on the event.
This really needs to go in an FAQ somewhere.