mirror of
https://github.com/ClipFusion-org/clipfusion.git
synced 2025-08-07 21:54:19 +00:00
eslint is not throwing errors anymore
This commit is contained in:
parent
7fbab934ff
commit
b5f6a1ee8c
@ -1,6 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import React, { createContext, Dispatch, ReactNode, SetStateAction, useContext, useRef, useState } from "react";
|
||||
import React, { createContext, Dispatch, ReactNode, SetStateAction, useContext, useState } from "react";
|
||||
import { useLiveQuery } from "dexie-react-hooks";
|
||||
import { addProject, db, deleteProject } from "@/lib/db";
|
||||
import { Label } from "@/components/ui/label";
|
||||
|
@ -93,7 +93,7 @@ const SwipeToDelete: FC<SwipeToDeleteProps> = ({
|
||||
lastYRef.current = pageY;
|
||||
|
||||
const raw = pageX - startX;
|
||||
let x = dragX < 0 ? rubber(raw) : rubber(raw, width * 0.1);
|
||||
const x = dragX < 0 ? rubber(raw) : rubber(raw, width * 0.1);
|
||||
if ((Math.abs(dragX) === 0 ? Math.abs(vY) < window.innerHeight * 0.05 && Math.abs(vX) > Math.abs(vY) : true)) {
|
||||
if (x < -1) setAllowOverscroll(true);
|
||||
if (x <= 0 || (allowOverscroll && x >= 0)) {
|
||||
|
Loading…
Reference in New Issue
Block a user