Browse Source

After tab-navigation, use 'nearest' scroll-into-view algorithm

Michael Ragazzon 2 years ago
parent
commit
6d552f71db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Core/ElementDocument.cpp

+ 1 - 1
Source/Core/ElementDocument.cpp

@@ -503,7 +503,7 @@ void ElementDocument::ProcessDefaultAction(Event& event)
 			{
 				if (element->Focus())
 				{
-					element->ScrollIntoView(false);
+					element->ScrollIntoView(ScrollAlignment::Nearest);
 					event.StopPropagation();
 				}
 			}