Tool cursor not drawn on touch devices, and fixed translating objects with touch
This commit is contained in:
parent
8b46c31bd7
commit
19983c7b1c
5 changed files with 29 additions and 3 deletions
|
|
@ -110,7 +110,7 @@ bool EraserTool::prevent_undo_or_redo() {
|
|||
}
|
||||
|
||||
void EraserTool::draw(SkCanvas* canvas, const DrawData& drawData) {
|
||||
if(drawData.main->world->drawProg.controls.cursorHoveringOverCanvas) {
|
||||
if(!drawP.world.main.input.isTouchDevice && drawData.main->world->drawProg.controls.cursorHoveringOverCanvas) {
|
||||
if(!lastPosOpt.has_value())
|
||||
lastPosOpt = drawData.main->input.mouse.pos;
|
||||
auto& lastPos = lastPosOpt.value();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue