Skip to content

Commit

Permalink
check undefined, trackpad can send deltaYs of 0 (#208920)
Browse files Browse the repository at this point in the history
  • Loading branch information
amunger committed Mar 27, 2024
1 parent 9757f7c commit 8cfe998
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ async function webviewPreloads(ctx: PreloadContext) {
let lastTimeScrolled: number | undefined;
function flagRecentlyScrolled(node: Element, deltaY?: number) {
scrolledElement = node;
if (!deltaY) {
if (deltaY === undefined) {
lastTimeScrolled = Date.now();
previousDelta = undefined;
node.setAttribute('recentlyScrolled', 'true');
Expand Down

0 comments on commit 8cfe998

Please sign in to comment.