“Stuttering” drag when using d3.behavior.drag() and transform

前端 未结 3 444
陌清茗
陌清茗 2020-12-09 04:01

I\'m trying to use d3.js\'s d3.behavior.drag() drag event to update my data model (without setting the element position immediately), then run my \

3条回答
  •  再見小時候
    2020-12-09 04:11

    Nautat provided good solution for your case.

    My case is slightly more complicated. My data is bound below g-node I want to transform. In this case I cannot simply move .call(drag) to g-level.

    I submitted a pull request to make base coordinate space customisable: https://github.com/mbostock/d3/pull/1055

提交回复
热议问题