Introducing panning acceleration factor (see issue #945: Paning a 1:1 preview from border to border need several click (& refresh))
This commit is contained in:
@@ -380,8 +380,9 @@ void CropWindow::pointerMoved (int x, int y) {
|
||||
iarea->redraw ();
|
||||
}
|
||||
else if (state==SCropImgMove) {
|
||||
action_x = (press_x - x) / zoomSteps[cropZoom].zoom;
|
||||
action_y = (press_y - y) / zoomSteps[cropZoom].zoom;
|
||||
double accel = options.panAccelFactor * zoomSteps[cropZoom].zoom;
|
||||
action_x = (press_x - x) / zoomSteps[cropZoom].zoom * accel;
|
||||
action_y = (press_y - y) / zoomSteps[cropZoom].zoom * accel;
|
||||
for (std::list<CropWindowListener*>::iterator i=listeners.begin(); i!=listeners.end(); i++)
|
||||
(*i)->cropPositionChanged (this);
|
||||
iarea->redraw ();
|
||||
|
Reference in New Issue
Block a user