myliang / x-spreadsheet

The project has been migrated to @wolf-table/table https://github.com/wolf-table/table
https://myliang.github.io/x-spreadsheet
MIT License
14.23k stars 1.72k forks source link

Scrolling triggers outer body instead of spreadsheet #447

Open CrashLaker opened 3 years ago

MartinDawson commented 3 years ago

Here's the partial fix which I did in my fork:

sheet.js:

Change lines 160 to this:

function overlayerMousescroll(evt) {
  // TODO: Fix for upper/lower bounds scroll
  evt.preventDefault();

Still has an issue when you are at the top of the scroll it doesn't reactivate the window scroll but this is still better.