From b82f82ea8371c970124a1ad8ea9a27223b947a0c Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Tue, 5 Dec 2023 07:34:42 +1100 Subject: [PATCH] added types to sortablejs --- src/SEQTA.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/SEQTA.ts b/src/SEQTA.ts index 1ade5dc7..cc5c587c 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -2,8 +2,7 @@ import browser from 'webextension-polyfill'; import { animate, spring, stagger } from 'motion'; import Color from 'color'; -// @ts-ignore -import Sortable, { AutoScroll } from 'sortablejs/modular/sortable.core.esm'; +import Sortable from 'sortablejs'; import ShortcutLinks from './seqta/content/links.json'; import MenuitemSVGKey from './seqta/content/MenuItemSVGKey.json'; @@ -1043,9 +1042,7 @@ export function OpenMenuOptions() { } result1.then(open, onError); - try { - Sortable.mount(new AutoScroll()); - + try { var el = document.querySelector('#menu > ul'); var sortable = Sortable.create((el as HTMLElement), { draggable: '.draggable',