]> source.dussan.org Git - tigervnc.git/commitdiff
vncviewer: Fix fullscreen scrolling 464/head
authorLuke Shumaker <lukeshu@lukeshu.com>
Tue, 23 May 2017 06:16:27 +0000 (02:16 -0400)
committerLuke Shumaker <lukeshu@lukeshu.com>
Wed, 24 May 2017 21:48:56 +0000 (17:48 -0400)
vncviewer/DesktopWindow.cxx

index 47fe8f8935adaf2ede09734765a5031e54db709b..946b162ca8e2be45e5f3bf4a599c2bd537d116b2 100644 (file)
@@ -1120,11 +1120,6 @@ void DesktopWindow::scrollTo(int x, int y)
   hscroll->value(x);
   vscroll->value(y);
 
-  if (!hscroll->visible())
-    x = -viewport->x();
-  if (!vscroll->visible())
-    y = -viewport->y();
-
   // Scrollbar position results in inverse movement of
   // the viewport widget
   x = -x;
@@ -1189,7 +1184,7 @@ void DesktopWindow::handleEdgeScroll(void *data)
   if ((dx == 0) && (dy == 0))
     return;
 
-  self->scrollTo(self->hscroll->value() + dx, self->vscroll->value() + dy);
+  self->scrollTo(self->hscroll->value() - dx, self->vscroll->value() - dy);
 
   Fl::repeat_timeout(0.1, handleEdgeScroll, data);
 }