Add hold to zoom button
This commit is contained in:
parent
777a5a6d03
commit
850882c8ed
4 changed files with 56 additions and 25 deletions
|
|
@ -83,9 +83,15 @@ class DrawingProgram {
|
|||
std::unique_ptr<DrawingProgramToolBase> toolToSwitchToAfterUpdate;
|
||||
std::unordered_set<CanvasComponentContainer::ObjInfo*> updateableComponents;
|
||||
|
||||
void tool_temporary_switch_update();
|
||||
enum class TemporaryMoveToolSwitch {
|
||||
NONE,
|
||||
PAN,
|
||||
ZOOM
|
||||
};
|
||||
bool temporaryEraser = false;
|
||||
bool temporaryPan = false;
|
||||
DrawingProgramToolType toolTypeAfterTempPan;
|
||||
TemporaryMoveToolSwitch tempMoveToolSwitch = TemporaryMoveToolSwitch::NONE;
|
||||
DrawingProgramToolType toolTypeAfterTempMove;
|
||||
|
||||
struct GlobalControls {
|
||||
float relativeWidth = 15.0f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue