mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [virtual-table] horizontal scroll (#7538)
This commit is contained in:
@@ -71,8 +71,6 @@ const Row = ({ cells, rowData }) => {
|
||||
}
|
||||
|
||||
Row.inheritAttrs = false
|
||||
|
||||
console.log(data)
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
@@ -39,6 +39,12 @@ export const useGridWheel = (
|
||||
x = 0
|
||||
}
|
||||
|
||||
// Special case for windows machine with shift key + wheel scrolling
|
||||
if (e.shiftKey && y !== 0) {
|
||||
x = y
|
||||
y = 0
|
||||
}
|
||||
|
||||
if (
|
||||
hasReachedEdge(xOffset, yOffset) &&
|
||||
hasReachedEdge(xOffset + x, yOffset + y)
|
||||
|
||||
Reference in New Issue
Block a user