Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KeyboardScrollingAnimator::updateKeyboardScrollPosition
is called i…
…ndefinitely when using keyboard smooth scrolling https://bugs.webkit.org/show_bug.cgi?id=245403 rdar://100146415 Reviewed by Tim Horton and Simon Fraser. When the `EventHandler driven smooth scrolling` flag is enabled, `KeyboardScrollingAnimator::updateKeyboardScrollPosition` is called indefinitely, causing the scroll to never terminate. Regression from 8c822fa which accidentally removed the logic of settng `m_scrollTriggeringKeyIsPressed` to `false`. * Source/WebCore/platform/KeyboardScrollingAnimator.cpp: (WebCore::KeyboardScrollingAnimator::handleKeyUpEvent): Canonical link: https://commits.webkit.org/254685@main
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
LayoutTests/fast/scrolling/mac/keyboard-scrolling-terminates-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
|
36 changes: 36 additions & 0 deletions
36
LayoutTests/fast/scrolling/mac/keyboard-scrolling-terminates.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true EventHandlerDrivenSmoothKeyboardScrollingEnabled=true ] --> | ||
|
||
<html> | ||
|
||
<head> | ||
<script src="../../../resources/ui-helper.js"></script> | ||
<script src="../../../resources/js-test.js"></script> | ||
<meta name="viewport" content="initial-scale=1.5, user-scalable=no"> | ||
<script> | ||
if (window.testRunner) { | ||
testRunner.dumpAsText(); | ||
testRunner.waitUntilDone(); | ||
} | ||
|
||
async function runTest() | ||
{ | ||
if (window.eventSender) { | ||
eventSender.monitorWheelEvents(); | ||
eventSender.keyDown("downArrow"); | ||
|
||
setTimeout(function() { | ||
eventSender.callAfterScrollingCompletes(() => { | ||
testRunner.notifyDone(); | ||
}); | ||
}, 0); | ||
} | ||
} | ||
</script> | ||
</head> | ||
|
||
<body onload="runTest()"> | ||
<div style="height: 5000px;"> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters