Skip to content
Permalink
Browse files

Fix endless spawn DCMD_GO_SCROLL_POS command

When in DVM_SCROLL only one page
Drop CPU load
  • Loading branch information
EXL committed May 10, 2018
1 parent e54d409 commit c948eb63e35a8c4f8b3b0f3a6a9400749de8479f
Showing with 1 addition and 1 deletion.
  1. +1 −1 cr3qt/src/cr3widget.cpp
@@ -685,7 +685,7 @@ void CR3View::updateScroll()
void CR3View::scrollTo( int value )
{
int currPos = _docview->getScrollInfo()->pos;
if ( currPos != value ) {
if ( currPos != value && value >= 0 ) {
doCommand( DCMD_GO_SCROLL_POS, value );
}
}

0 comments on commit c948eb6

Please sign in to comment.
You can’t perform that action at this time.