mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
check undefined, trackpad can send deltaYs of 0 (#208920)
This commit is contained in:
parent
9757f7c73a
commit
8cfe998a17
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue