input-knob
input-knob copied to clipboard
@rotationStart, calc _centerX/Y based on bounds
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]