Disable smooth scrolling
authorThomas Richter <richter@rus.uni-stuttgart.de>
Sat, 6 Jun 2020 00:26:42 +0000 (01:26 +0100)
committerJonas Smedegaard <dr@jones.dk>
Sat, 6 Jun 2020 00:26:42 +0000 (01:26 +0100)
Reviewed-by: Dmitry Smirnov <onlyjob@member.fsf.org>
Origin: other, https://bugs.debian.org/624095
Bug-Debian: https://bugs.debian.org/624095
Last-Update: 2020-06-05

Comment out code enabling smooth scrolling disregarding preferences
to leave decision whenever use the smooth scrolling or not to user.
Last-Update: 2020-06-05
Gbp-Pq: Name 624095-disable_smooth_scrolling.patch

src/text/fmt/xp/fv_View.cpp

index 6952c9be5489ff7835b3e7f0904dd11b283ee704..d4e8da94dc083c9b783dd1d3f39c207177cc4a64 100644 (file)
@@ -14364,6 +14364,8 @@ void FV_View::calculateNumHorizPages()
        {
                m_iNumHorizPages = m_pLayout->countPages();
        }
+/*     Debian bug #624095: smooth scrolling enabled, preferences ignored.
+ *     Commenting to leave decision whenever use the smooth scrolling to user.
        if (m_iNumHorizPages > 1)
        {
                XAP_App::getApp()->setEnableSmoothScrolling(false);
@@ -14372,6 +14374,7 @@ void FV_View::calculateNumHorizPages()
        {
                XAP_App::getApp()->setEnableSmoothScrolling(true);
        }
+*/
        if(iOldNo != static_cast<UT_sint32>(m_iNumHorizPages))
        {
                UT_uint32 iPrevYOffset = m_yScrollOffset;