Event Flags now zooms to detail when fully expanded

This commit is contained in:
Mark Watkins 2011-07-17 17:19:31 +10:00
parent 2c3600ab09
commit 17f4185ae7

View File

@ -699,8 +699,10 @@ void gGraphWindow::OnMouseLeftRelease(QMouseEvent * event)
x-=GetLeftMargin();
double rx=rmax_x-rmin_x;
double mx=max_x-min_x;
if (mx<rx) {
double qx=(rx/width)*double(x);
if (mx>=rx) {
mx=1.0/(24.0*15.0);
}
qx+=rmin_x;
qx-=mx/2.0;
if (qx<rmin_x) {
@ -711,7 +713,6 @@ void gGraphWindow::OnMouseLeftRelease(QMouseEvent * event)
}
SetXBounds(qx,qx+mx);
did_draw=true;
}
} else {
int xp=x;
//xp=0;