input-knob icon indicating copy to clipboard operation
input-knob copied to clipboard

@rotationStart, calc _centerX/Y based on bounds

Open woutervroege opened this issue 4 years ago • 0 comments

offsetLeft & offsetTop are relative to the element first positioned (not static) ancestor element.

This causes the input-knob to break when placed in any non-statically positioned (e.g. absolute) element. Using getBoundingClientRect() fixes this issue.

Signed-off-by: Wouter Vroege [email protected]

woutervroege avatar Nov 05 '20 19:11 woutervroege