diff --git a/initializePositions.py b/initializePositions.py index a7408dc..320600b 100644 --- a/initializePositions.py +++ b/initializePositions.py @@ -132,10 +132,10 @@ def onClick(x, y, button, pressed): positions[name]["pen"]["x"] = x positions[name]["pen"]["y"] = y - if clickToExpand: - status = "clickToExpand" - else: - status = "topleft" + # if clickToExpand: + # status = "clickToExpand" + # else: + status = "topleft" # status = "topleft" return @@ -147,14 +147,15 @@ def onClick(x, y, button, pressed): # print('click to close the color picker') status = "clickToClose" else: - status = "topleft" + status = "colors" return if status == "clickToClose": positions[name]["clickToClose"]["x"] = x positions[name]["clickToClose"]["y"] = y # print('click to close the color picker') - status = "topleft" + # status = "topleft" + status = "skipClick" return if status == "topleft": @@ -168,7 +169,9 @@ def onClick(x, y, button, pressed): positions[name]["bottomright"]["y"] = y if clickToExpand: # print('click to expand the color picker to be able to click on all colors') - status = "skipClick" + # status = "skipClick" + status = "clickToExpand" + else: status = "colors" diff --git a/package.json b/package.json index 1f85c24..88d5c57 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Drawbot", - "version": "3.20.0", + "version": "3.20.1", "description": "This moves the mouse to draw stuff", "main": "index.js", "scripts": {