mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 09:08:34 +00:00
Remove Slider transition in Safari (#6070)
This commit is contained in:
parent
16bca0c095
commit
893bf88e0d
1 changed files with 5 additions and 4 deletions
|
|
@ -80,9 +80,11 @@ export function Slider({ counter, className, style, ...rest }: SliderProps) {
|
|||
}
|
||||
}
|
||||
|
||||
div,
|
||||
div:after {
|
||||
transition: transform var(--ease) 500ms;
|
||||
@supports not (font: -apple-system-body) {
|
||||
div,
|
||||
div:after {
|
||||
transition: transform var(--ease) 500ms;
|
||||
}
|
||||
}
|
||||
`}</style>
|
||||
</div>
|
||||
|
|
@ -114,7 +116,6 @@ function polyfillSlider(element: HTMLElement, cssProperty: `--${string}`) {
|
|||
const vertical = height > width;
|
||||
const range = Number(input.max) - Number(input.min);
|
||||
const ratio = vertical ? (y - top) / height : (x - left) / width;
|
||||
// alert(ratio, val)
|
||||
const val = Number(input.min) + Math.floor(range * ratio);
|
||||
input.value = val.toString();
|
||||
sync();
|
||||
|
|
|
|||
Loading…
Reference in a new issue