Hi,
I have found a bug when do scrolling with a2dCanvas, if you scroll with
a reverse direction as last scroll, for e.g. you press PAGE_DOWN and then
press PAGE_UP, the scroll thumb will move to wrong position, it behaves like
you press PAGE_DOWN again.
I have investigate the code, and found it could be fixed by minor
changes with a2dCanvas::ScrollWindowConstrained()
Following are the output of the cvs diff command
D:\Src\wxArt2D\modules\canvas\src>cvs diff canvas.cpp
Index: canvas.cpp
===================================================================
RCS file: /cvsroot/wxart2d/wxArt2D/modules/canvas/src/canvas.cpp,v
retrieving revision 1.111
diff -r1.111 canvas.cpp
1303a1304,1307
>
> GetDrawer2D()->SetMinY(newworldminy);
> GetDrawer2D()->SetMinX(newworldminx);
>
1313c1317
< GetDrawer2D()->SetMinY(newworldminy);
---
> // GetDrawer2D()->SetMinY(newworldminy);
1319c1323
< GetDrawer2D()->SetMinX(newworldminx);
---
> // GetDrawer2D()->SetMinX(newworldminx);
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev