Mandelbrot: Fix bug that allowed the view to become mirrored.

Change-Id: I88caf3c712bad30fa077bc8c0290b4706541c2b0
Reviewed-on: https://review.haiku-os.org/731
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
kerwizzy 2018-11-25 12:31:35 +00:00 committed by Adrien Destugues
parent e920ab3cb6
commit 2c5c300420

View File

@ -242,7 +242,7 @@ void FractalView::MouseUp(BPoint where)
centerY = lt.y + dragFrame.Height() / 2;
SetLocationFromFrame(centerX, centerY);
fSize = (dragFrame.Width() * fSize) / frame.Width();
fSize = std::fabs((dragFrame.Width() * fSize) / frame.Width());
} else {
if (fMouseButtons & B_PRIMARY_MOUSE_BUTTON) {
SetLocationFromFrame(where.x, where.y);