<table><tr><td style="">rmacmaster created this revision.<br />rmacmaster added a reviewer: okular-devel.<br />Restricted Application added a subscriber: Okular.<br />Restricted Application added a project: Okular.<br />rmacmaster requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D9857" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>I'm one of those guys that likes smooth scrolling on his PDF viewers.<br />
I added two new settings: ScrollStep and SmoothScrolling.</p>

<p>ScrollStep changes the vertical scroll bar's scroll / step in pixels.<br />
SmoothScrolling enables the smooth scrolling feature (disabled by default).</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>A better implementation might include changing the PageView to inherit the QAbstractItemView such that the built-in QT smooth scrolling could be used.<br />
I'm not sure if this smooth scrolling would be better or worse.</p>

<p>The problem with the current implementation is that it sometimes continues scrolling even after the up/down key has been lifted.<br />
This could be fixed with a timer similar to the DragScroll implementation.</p>

<p>For the moment, it's a basic smooth scrolling feature that works well when configured reasonably.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9857" rel="noreferrer">https://phabricator.kde.org/D9857</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>conf/dlggeneralbase.ui<br />
conf/okular.kcfg<br />
ui/pageview.cpp</div></div></div><br /><div><strong>To: </strong>rmacmaster, okular-devel<br /><strong>Cc: </strong>Okular, michaelweghorn, gassaf, ngraham, aacid<br /></div>