fix: android gestures attempt 2

fix: unclickable space in home screen highlight
This commit is contained in:
ThaUnknown 2025-09-02 21:20:57 +02:00
parent a0561ec0f7
commit 9151d37754
No known key found for this signature in database
3 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "ui", "name": "ui",
"version": "6.4.116", "version": "6.4.117",
"license": "BUSL-1.1", "license": "BUSL-1.1",
"private": true, "private": true,
"packageManager": "pnpm@9.15.5", "packageManager": "pnpm@9.15.5",

View file

@ -139,7 +139,7 @@
</script> </script>
<!-- fix for android gestures not cancelling pointer when closing the app using gestures from the bottom which hovers the seekbar, insane. --> <!-- fix for android gestures not cancelling pointer when closing the app using gestures from the bottom which hovers the seekbar, insane. -->
<svelte:document on:visibilitychange={endHover} /> <!-- <svelte:document on:visibilitychange={endHover} /> -->
<div class='w-full flex cursor-pointer relative group/seekbar touch-none !transform-none' class:!cursor-grab={seeking} <div class='w-full flex cursor-pointer relative group/seekbar touch-none !transform-none' class:!cursor-grab={seeking}
tabindex='0' role='slider' aria-valuenow='0' tabindex='0' role='slider' aria-valuenow='0'
@ -153,7 +153,7 @@
on:pointerup={endSeeking} on:pointerup={endSeeking}
on:pointermove={calculatePositionProgress} on:pointermove={calculatePositionProgress}
on:pointerleave={endHover} on:pointerleave={endHover}
on:pointercancel={endHover}> on:pointercancel={endSeeking}>
{#each segments as chapter, i (chapter)} {#each segments as chapter, i (chapter)}
{@const { size, scale, offset } = chapter} {@const { size, scale, offset } = chapter}
{@const active = seek && seek > offset && seek < offset + size} {@const active = seek && seek > offset && seek < offset + size}

View file

@ -97,9 +97,9 @@
<div class='grow h-full min-w-0 -ml-14 pl-14 overflow-y-scroll' use:dragScroll on:scroll={handleScroll}> <div class='grow h-full min-w-0 -ml-14 pl-14 overflow-y-scroll' use:dragScroll on:scroll={handleScroll}>
<Banner /> <Banner />
{#each $sectionQueries as { title, query, variables }, i (i)} {#each $sectionQueries as { title, query, variables }, i (i)}
<div class='flex px-4 pt-5 items-end cursor-pointer text-muted-foreground select:text-foreground'> <div class='flex px-4 pt-5 items-end cursor-pointer text-muted-foreground'>
<div class='font-semibold text-lg leading-none' use:click={() => search(variables)}>{title}</div> <div class='font-semibold text-lg leading-none select:text-foreground' use:click={() => search(variables)}>{title}</div>
<div class='ml-auto text-xs' use:click={() => search(variables)}>View More</div> <div class='ml-auto text-xs select:text-foreground' use:click={() => search(variables)}>View More</div>
</div> </div>
<div class='flex overflow-x-scroll select:-ml-14 select:pl-14 -mt-40 pt-40 -mb-5 pb-5 relative group pointer-events-none' use:dragScroll> <div class='flex overflow-x-scroll select:-ml-14 select:pl-14 -mt-40 pt-40 -mb-5 pb-5 relative group pointer-events-none' use:dragScroll>
<QueryCard {query} /> <QueryCard {query} />