Bug 868432 - Animate scrolling when Home/End button is pressed. r=roc
☠☠ backed out by bb1d1ddc189a ☠ ☠
authorJosiahOne <josiah@programmer.net>
Tue, 07 May 2013 14:41:09 -0400
changeset 142162 ff30118a4799ddaee39f1e091e97b1f99cf1ecdb
parent 142161 ba8cfb0179f14f088111561b9f745daf61ddbb6b
child 142163 7b389768f7889dea9f6a2ae334aa6226d129b510
push id2579
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 18:52:47 +0000
treeherdermozilla-beta@b69b7de8a05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs868432
milestone23.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