allow selecting the fill color in the vector editor via touch-hold gesture on touch devices

snap7
jmoenig 2021-11-03 11:59:16 +01:00
rodzic c852c9849f
commit 2993c2ed81
3 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -40,6 +40,7 @@
* disabled dropping reporters onto message hat block input slots * disabled dropping reporters onto message hat block input slots
* fixed outdated blocks specs for "When I am ..." hat block in many translations * fixed outdated blocks specs for "When I am ..." hat block in many translations
* fixed duplicating custom block definitions that don't have a body * 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:** * **Documentation Updates:**
* updated manual, thanks Brian! * updated manual, thanks Brian!
* updated readme, thanks, Michael! * updated readme, thanks, Michael!
@ -47,6 +48,9 @@
* German * German
* Chinese, thanks, Simon! * 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 ### 2021-10-29
* objects: flood-fill edge case fix, thanks, Dariusz! * objects: flood-fill edge case fix, thanks, Dariusz!
* gui: removed obsolete dev comments * gui: removed obsolete dev comments

Wyświetl plik

@ -25,7 +25,7 @@
<script src="src/lists.js?version=2021-07-19"></script> <script src="src/lists.js?version=2021-07-19"></script>
<script src="src/byob.js?version=2021-10-25"></script> <script src="src/byob.js?version=2021-10-25"></script>
<script src="src/tables.js?version=2021-05-07"></script> <script src="src/tables.js?version=2021-05-07"></script>
<script src="src/sketch.js?version=2021-07-05"></script> <script src="src/sketch.js?version=2021-11-03"></script>
<script src="src/video.js?version=2019-06-27"></script> <script src="src/video.js?version=2019-06-27"></script>
<script src="src/maps.js?version=2021-06-15"></script> <script src="src/maps.js?version=2021-06-15"></script>
<script src="src/extensions.js?version=2021-10-06"></script> <script src="src/extensions.js?version=2021-10-06"></script>

Wyświetl plik

@ -65,7 +65,7 @@ StringMorph, detect, modules*/
/*jshint esversion: 6*/ /*jshint esversion: 6*/
modules.sketch = '2021-July-05'; modules.sketch = '2021-November-03';
// Declarations // 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(new Color(0, 0, 0)); // secondary color
pc.colorpicker.action('transparent', true); pc.colorpicker.action('transparent', true);