mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 19:28:14 +08:00
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:
parent
2793c8477f
commit
2ab408ae48
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user