mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-27 12:04:56 +02:00
UBER-358: Fix icons (#3338)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
import IconUpOutline from './icons/UpOutline.svelte'
|
||||
import IconDownOutline from './icons/DownOutline.svelte'
|
||||
import HalfUpDown from './icons/HalfUpDown.svelte'
|
||||
import { isSafari } from '../utils'
|
||||
|
||||
export let padding: string | undefined = undefined
|
||||
export let autoscroll: boolean = false
|
||||
@@ -375,7 +374,6 @@
|
||||
} else if (deltaY > 0 && autoscroll && !scrolling && belowContent && belowContent <= 10) {
|
||||
scrolling = true
|
||||
}
|
||||
scrollY += deltaY
|
||||
}
|
||||
|
||||
let observer: IntersectionObserver
|
||||
@@ -452,7 +450,6 @@
|
||||
(orientir === 'horizontal' && (maskH === 'left' || maskH === 'both'))
|
||||
? 'visible'
|
||||
: 'hidden'
|
||||
let scrollY: number = 0
|
||||
</script>
|
||||
|
||||
<svelte:window on:resize={_resize} />
|
||||
@@ -478,22 +475,6 @@
|
||||
style:overflow-x={horizontal ? 'auto' : 'hidden'}
|
||||
on:scroll={(evt) => {
|
||||
if ($tooltipstore.label !== undefined) closeTooltip()
|
||||
const newPos = divScroll?.scrollTop ?? 0
|
||||
|
||||
// TODO: Workaround: https://front.hc.engineering/workbench/platform/tracker/TSK-760
|
||||
// In Safari scroll could jump on click, with no particular reason.
|
||||
|
||||
if (
|
||||
!scrolling &&
|
||||
!isScrolling &&
|
||||
scrollY !== 0 &&
|
||||
Math.abs(newPos - scrollY) > 100 &&
|
||||
divScroll !== undefined &&
|
||||
isSafari()
|
||||
) {
|
||||
divScroll.scrollTop = scrollY
|
||||
}
|
||||
scrollY = divScroll?.scrollTop ?? 0
|
||||
}}
|
||||
>
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user