D3.js: Remove force.drag from a selection

前端 未结 3 1098
星月不相逢
星月不相逢 2020-12-01 21:21

I have a (rather simple) question: How to \"un-call\" force.drag on a selection made by D3.js? Let\'s say I created a set of elements and called \"call\" on it, giving it th

3条回答
  •  不知归路
    2020-12-01 22:06

    This line somehow it's not mobile compatible (chrome/android)

    d3.select('rect#no-drag').on('mousedown.drag', null);
    

提交回复
热议问题