From 2993c2ed81f4b81119cfdb9d4fe423171c76879c Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 3 Nov 2021 11:59:16 +0100 Subject: [PATCH] allow selecting the fill color in the vector editor via touch-hold gesture on touch devices --- HISTORY.md | 4 ++++ snap.html | 2 +- src/sketch.js | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 0dc9dd26..6c7d676d 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -40,6 +40,7 @@ * disabled dropping reporters onto message hat block input slots * fixed outdated blocks specs for "When I am ..." hat block in many translations * fixed duplicating custom block definitions that don't have a body + * allow selecting the fill color in the vector editor via touch-hold gesture on touch devices * **Documentation Updates:** * updated manual, thanks Brian! * updated readme, thanks, Michael! @@ -47,6 +48,9 @@ * German * Chinese, thanks, Simon! +### 2021-11-03 +* sketch: allow selecting the fill color in the vector editor via touch-hold gesture on touch devices + ### 2021-10-29 * objects: flood-fill edge case fix, thanks, Dariusz! * gui: removed obsolete dev comments diff --git a/snap.html b/snap.html index 95eab963..5954d11a 100755 --- a/snap.html +++ b/snap.html @@ -25,7 +25,7 @@ - + diff --git a/src/sketch.js b/src/sketch.js index 26f72943..784d5509 100644 --- a/src/sketch.js +++ b/src/sketch.js @@ -65,7 +65,7 @@ StringMorph, detect, modules*/ /*jshint esversion: 6*/ -modules.sketch = '2021-July-05'; +modules.sketch = '2021-November-03'; // Declarations @@ -1316,6 +1316,9 @@ VectorPaintEditorMorph.prototype.populatePropertiesMenu = function () { } }; + // also allow selecting the fill color via touch-hold + pc.colorpicker.mouseClickRight = pc.colorpicker.mouseDownRight; + pc.colorpicker.action(new Color(0, 0, 0)); // secondary color pc.colorpicker.action('transparent', true);