fix(components): [virtual-list] scroll issue (#11475)

* Remove browser judgement for fixing scroll issue.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
Co-authored-by: iamkun <kunhello@outlook.com>
This commit is contained in:
Jeremy 2023-02-09 19:04:05 +08:00 committed by GitHub
parent 2793c8477f
commit 2ab408ae48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
import { cAF, isFirefox, rAF } from '@element-plus/utils'
import { cAF, rAF } from '@element-plus/utils'
import type { ComputedRef } from 'vue'
@ -54,9 +54,7 @@ export const useGridWheel = (
xOffset += x
yOffset += y
if (!isFirefox()) {
e.preventDefault()
}
e.preventDefault()
frameHandle = rAF(() => {
onWheelDelta(xOffset, yOffset)