Skip to content

Commit

Permalink
🐛 remove distance ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
elmarti committed Nov 24, 2022
1 parent 790817a commit d6a952b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Joystick.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ class Joystick extends React.Component<IJoystickProps, IJoystickState> {
private _radius: number;
private _parentRect: DOMRect;
private _pointerId: number|null = null
private _distanceRatio: number;

constructor(props: IJoystickProps) {
super(props);
Expand Down Expand Up @@ -383,7 +382,6 @@ class Joystick extends React.Component<IJoystickProps, IJoystickState> {

render() {
this._baseSize = this.props.size || 100;
this._distanceRatio = this._baseSize / 100;
this._stickSize = this.props.stickSize;
this._radius = this._baseSize / 2;
const baseStyle = this._getBaseStyle();
Expand Down

0 comments on commit d6a952b

Please sign in to comment.