MCPcopy Create free account
hub / github.com/instantdb/instant / patchNumberInputScroll

Function patchNumberInputScroll

client/www/lib/patchBrowserEvents.ts:79–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79export function patchNumberInputScroll() {
80 window.addEventListener('wheel', (event: WheelEvent) => {
81 const target = event.target;
82 if (target instanceof HTMLInputElement && target.type === 'number') {
83 event.preventDefault();
84 }
85 });
86}

Callers 2

AppFunction · 0.90
ProvidersFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected