From: Luke Shumaker Date: Tue, 23 May 2017 06:16:27 +0000 (-0400) Subject: vncviewer: Fix fullscreen scrolling X-Git-Tag: v1.8.90~139^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F464%2Fhead;p=tigervnc.git vncviewer: Fix fullscreen scrolling --- diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx index 47fe8f89..946b162c 100644 --- a/vncviewer/DesktopWindow.cxx +++ b/vncviewer/DesktopWindow.cxx @@ -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); }