1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-14 12:55:47 +01:00

Various bug fixes.

This commit is contained in:
dan
1999-07-03 23:50:05 +00:00
parent caf8ffee27
commit 62240a0f26
15 changed files with 71 additions and 25 deletions

View File

@@ -245,7 +245,7 @@ doScrolling(WMWidget *self, void *data)
int vpsize;
float size;
if (sPtr->hScroller == self) {
if (sPtr->hScroller == (WMScroller *)self) {
pos = -sPtr->contentView->pos.x;
size = sPtr->contentView->size.width-sPtr->viewport->size.width;
vpsize = sPtr->viewport->size.width - sPtr->pageScroll;
@@ -310,7 +310,7 @@ doScrolling(WMWidget *self, void *data)
break;
}
if (sPtr->hScroller == self) {
if (sPtr->hScroller == (WMScroller *)self) {
W_MoveView(sPtr->contentView, -pos, sPtr->contentView->pos.y);
} else {
W_MoveView(sPtr->contentView, sPtr->contentView->pos.x, -pos);