From d6a952bed5b8d1bd84d7d3e0a307615a42d31ba9 Mon Sep 17 00:00:00 2001 From: elmarti Date: Thu, 24 Nov 2022 17:57:04 +0000 Subject: [PATCH] :bug: remove distance ratio --- src/Joystick.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Joystick.tsx b/src/Joystick.tsx index afedaf5..59ccb57 100644 --- a/src/Joystick.tsx +++ b/src/Joystick.tsx @@ -75,7 +75,6 @@ class Joystick extends React.Component { private _radius: number; private _parentRect: DOMRect; private _pointerId: number|null = null - private _distanceRatio: number; constructor(props: IJoystickProps) { super(props); @@ -383,7 +382,6 @@ class Joystick extends React.Component { 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();