mirror of
https://github.com/NoCrypt/migu.git
synced 2026-03-11 17:45:32 +00:00
fix: include roboto font
fix: fix scrolling never reaching top fix: scrolling not starting fix: add delay to immerse/unimmerse time
This commit is contained in:
parent
b04793443d
commit
f93017fba3
5 changed files with 16 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Miru",
|
||||
"version": "4.3.7",
|
||||
"version": "4.3.8",
|
||||
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
||||
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
||||
"main": "build/main.js",
|
||||
|
|
@ -17,6 +17,7 @@
|
|||
"@electron/notarize": "^2.1.0",
|
||||
"@fontsource-variable/material-symbols-outlined": "^5.0.6",
|
||||
"@fontsource-variable/nunito": "^5.0.7",
|
||||
"@fontsource/roboto": "^5.0.8",
|
||||
"@typescript-eslint/parser": "^6.2.1",
|
||||
"anitomyscript": "github:ThaUnknown/anitomyscript#42290c4b3f256893be08a4e89051f448ff5e9d00",
|
||||
"bottleneck": "^2.19.5",
|
||||
|
|
|
|||
|
|
@ -19,6 +19,9 @@ devDependencies:
|
|||
'@fontsource-variable/nunito':
|
||||
specifier: ^5.0.7
|
||||
version: 5.0.7
|
||||
'@fontsource/roboto':
|
||||
specifier: ^5.0.8
|
||||
version: 5.0.8
|
||||
'@typescript-eslint/parser':
|
||||
specifier: ^6.2.1
|
||||
version: 6.2.1(eslint@8.46.0)(typescript@5.1.6)
|
||||
|
|
@ -288,6 +291,10 @@ packages:
|
|||
resolution: {integrity: sha512-rgcwJa5gzRfZH3ZFz5+EaFPXX8GksBz9rYJXLhtdv4hrZZv/d3aiOq7cZXZdzt+1EbIqWRN/2/zlu/0+UqxPgA==}
|
||||
dev: true
|
||||
|
||||
/@fontsource/roboto@5.0.8:
|
||||
resolution: {integrity: sha512-XxPltXs5R31D6UZeLIV1td3wTXU3jzd3f2DLsXI8tytMGBkIsGcc9sIyiupRtA8y73HAhuSCeweOoBqf6DbWCA==}
|
||||
dev: true
|
||||
|
||||
/@humanwhocodes/config-array@0.11.10:
|
||||
resolution: {integrity: sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==}
|
||||
engines: {node: '>=10.10.0'}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import App from './App.svelte'
|
|||
import 'quartermoon/css/quartermoon-variables.css'
|
||||
import '@fontsource-variable/material-symbols-outlined/full.css'
|
||||
import '@fontsource-variable/nunito'
|
||||
import '@fontsource/roboto'
|
||||
import './css.css'
|
||||
|
||||
export default new App({ target: document.body })
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export default function (t, { speed = 120, smooth = 10 } = {}) {
|
|||
const delta = pos - scrollTop === smooth * 2 ? 0 : ((pos - scrollTop) / smooth) * getDeltaTime()
|
||||
scrollTop += delta
|
||||
|
||||
t.scrollTo(0, scrollTop)
|
||||
moving = Math.abs(delta) > 0.3 && requestAnimationFrame(update)
|
||||
t.scrollTo(0, scrollTop < 1.3 ? 0 : scrollTop)
|
||||
moving = Math.abs(delta) > 0.1 && requestAnimationFrame(update)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1198,7 +1198,6 @@
|
|||
.player {
|
||||
user-select: none;
|
||||
font-family: Roboto, Arial, Helvetica, sans-serif;
|
||||
will-change: width;
|
||||
background: #000000;
|
||||
}
|
||||
|
||||
|
|
@ -1240,7 +1239,7 @@
|
|||
animation: spin 1s linear infinite;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: 0.5s opacity ease;
|
||||
transition: 0.5s opacity ease 0.2s;
|
||||
filter: drop-shadow(0 0 8px #000);
|
||||
}
|
||||
.disabled {
|
||||
|
|
@ -1311,7 +1310,7 @@
|
|||
filter: drop-shadow(0 0 8px #000);
|
||||
}
|
||||
.skip {
|
||||
transition: 0.5s opacity ease;
|
||||
transition: 0.5s opacity ease 0.2s;
|
||||
background: #ececec;
|
||||
}
|
||||
.skip:hover {
|
||||
|
|
@ -1320,11 +1319,11 @@
|
|||
|
||||
.bottom {
|
||||
background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 75%, transparent);
|
||||
transition: 0.5s opacity ease;
|
||||
transition: 0.5s opacity ease 0.2s;
|
||||
}
|
||||
.top {
|
||||
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4) 25%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 75%, transparent);
|
||||
transition: 0.5s opacity ease;
|
||||
transition: 0.5s opacity ease 0.2s;
|
||||
}
|
||||
|
||||
.ctrl {
|
||||
|
|
|
|||
Loading…
Reference in a new issue