Skip to content

Commit f426b43

Browse files
committed
[FIX] spreadsheet: fix scroll issue on chromium core 125
Since the update of chromium-based browsers to chromium 125, our `wheel` listeners declared inside a template are no longer properly registered. It turns out that registering another event listener of the same type fixes the template scroll. This revision proposes this simple hack/fix as we still struggle to find the actual reason behind this (might be owl related) to unblock users. closes #4251 Task: 0 Signed-off-by: Vincent Schippefilt (vsc) <[email protected]>
1 parent ae31d65 commit f426b43

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/spreadsheet/spreadsheet.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ export class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEnv
188188
useExternalListener(window as any, "resize", () => this.render(true));
189189
useExternalListener(window, "beforeunload", this.unbindModelEvents.bind(this));
190190

191+
// For some reason, the wheel event is not properly registered inside templates
192+
// in Chromium-based browsers based on chromium 125
193+
// This hack ensures the event declared in the template is properly registered/working
194+
useExternalListener(document.body, "wheel", () => {});
195+
191196
this.bindModelEvents();
192197
onMounted(() => {
193198
this.checkViewportSize();

0 commit comments

Comments
 (0)