With the svg.draggable.js
On firefox/safari, When you click in the text it move to the left a bit.
Follow the code https://jsfiddle.net/gnmobz34/4/
var draw = SVG('draw').size(400, 400)
var text = draw.text("Some string")
text.font({
family: 'Helvetica',
size: 20,
anchor: 'middle',
leading: '1.5em'
})
text.draggable()
On chrome this problem does not happen.
此错误已通过svg.draggable.js 2.1.3版修复。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.