v0.9.3: fixed inconsistencies between mouse and button zooming
This commit is contained in:
@@ -245,10 +245,12 @@ public class CellSelector extends ScrollArea {
|
|||||||
} else {
|
} else {
|
||||||
if (action == SPDAction.ZOOM_IN){
|
if (action == SPDAction.ZOOM_IN){
|
||||||
zoom( camera.zoom+1 );
|
zoom( camera.zoom+1 );
|
||||||
|
mouseZoom = camera.zoom;
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
} else if (action == SPDAction.ZOOM_OUT){
|
} else if (action == SPDAction.ZOOM_OUT){
|
||||||
zoom( camera.zoom-1 );
|
zoom( camera.zoom-1 );
|
||||||
|
mouseZoom = camera.zoom;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user