Merge pull request #70 from mrjvs/fix-jumping-cursor

Fix jumping cursor
This commit is contained in:
James Hawkins 2022-05-01 22:46:58 +01:00 committed by GitHub
commit ffacd366c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 6 deletions

5
.env Normal file
View File

@ -0,0 +1,5 @@
# this is to prevent warnings in webpack builds
GENERATE_SOURCEMAP=false
# uncomment and add the following line to `.env.local` if you are running behind a proxy or on a subdirectory
# PUBLIC_URL=https://your-domain.com/directory-here

View File

@ -16,14 +16,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<meta <meta
name="description" name="description"
content="because watching movies legally is boring" content="Because watching movies legally is boring"
/> />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="180x180" href="%PUBLIC_URL%/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="32x32" href="%PUBLIC_URL%/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> <link rel="icon" type="image/png" sizes="16x16" href="%PUBLIC_URL%/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest"> <link rel="manifest" href="%PUBLIC_URL%/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#E880C5"> <link rel="mask-icon" href="%PUBLIC_URL%/safari-pinned-tab.svg" color="#E880C5">
<meta name="msapplication-TileColor" content="#E880C5"> <meta name="msapplication-TileColor" content="#E880C5">
<meta name="theme-color" content="#E880C5"> <meta name="theme-color" content="#E880C5">

View File

@ -13,6 +13,7 @@ export function useSearchQuery(): [MWQuery, (inp: Partial<MWQuery>) => void] {
const updateParams = (inp: Partial<MWQuery>) => { const updateParams = (inp: Partial<MWQuery>) => {
const copySearch: MWQuery = { ...search }; const copySearch: MWQuery = { ...search };
Object.assign(copySearch, inp); Object.assign(copySearch, inp);
setSearch(copySearch);
history.replace( history.replace(
generatePath(path, { generatePath(path, {
query: query: