Skip to content

Commit

Permalink
Merge pull request #441 from vector-im/dbkr/fix_ptt_button_mobile
Browse files Browse the repository at this point in the history
Fix the PTT button on mobile
  • Loading branch information
dbkr authored Jul 5, 2022
2 parents 8380894 + 2dcf043 commit 2cc291d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/room/PTTButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import React, { useCallback, useState, createRef } from "react";
import React, { useCallback, useState, useRef } from "react";
import classNames from "classnames";
import { useSpring, animated } from "@react-spring/web";

Expand Down Expand Up @@ -54,7 +54,7 @@ export const PTTButton: React.FC<Props> = ({
enqueueNetworkWaiting,
setNetworkWaiting,
}) => {
const buttonRef = createRef<HTMLButtonElement>();
const buttonRef = useRef<HTMLButtonElement>();

const [activeTouchId, setActiveTouchId] = useState<number | null>(null);

Expand Down

0 comments on commit 2cc291d

Please sign in to comment.