Bug 868432 - Animate scrolling when Home/End button is pressed. r=roc
authorJosiahOne <josiah@programmer.net>
Tue, 07 May 2013 14:41:09 -0400
changeset 131967 43f51c6858ae5adb60d9ed482c75aece7ff599e0
parent 131966 f33e89758cc498d3d7dfd8b3efa3b8f212defeea
child 131968 aab37a39c92ab68a2e04ba1e6ab5ff98b3f7a5a7
push id24678
push userryanvm@gmail.com
push dateThu, 16 May 2013 01:15:09 +0000
treeherdermozilla-central@19cc1efe8097 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs868432
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 868432 - Animate scrolling when Home/End button is pressed. r=roc
layout/base/nsPresShell.cpp
--- a/layout/base/nsPresShell.cpp
+++ b/layout/base/nsPresShell.cpp
@@ -2221,17 +2221,17 @@ PresShell::ScrollCharacter(bool aRight)
 NS_IMETHODIMP
 PresShell::CompleteScroll(bool aForward)
 {
   nsIScrollableFrame* scrollFrame =
     GetFrameToScrollAsScrollable(nsIPresShell::eVertical);
   if (scrollFrame) {
     scrollFrame->ScrollBy(nsIntPoint(0, aForward ? 1 : -1),
                           nsIScrollableFrame::WHOLE,
-                          nsIScrollableFrame::INSTANT);
+                          nsIScrollableFrame::SMOOTH);
   }
   return NS_OK;
 }
 
 NS_IMETHODIMP
 PresShell::CompleteMove(bool aForward, bool aExtend)
 {
   // Beware! This may flush notifications via synchronous