react-resizable icon indicating copy to clipboard operation
react-resizable copied to clipboard

draggableOpts position is not work

Open zhangwei900808 opened this issue 7 years ago • 0 comments

I want to set position and drag resize but it not work, how can I solve it

draggableOpts={{
            position: { x: chart.get("x"), y: chart.get("y") },
            scale: scale,
            onDrag: (e, position) => {
              this.props.setChart(
                charts.map((item, ii) => {
                  if (index == ii) {
                    return item.merge({
                      x: position.x,
                      y: position.y
                    });
                  }
                  return item;
                })
              );
            }
          }}

zhangwei900808 avatar Sep 24 '19 08:09 zhangwei900808