kopia lustrzana https://github.com/backface/turtlestitch
fixed being unable to place the cursor at the end of a multi-line text
rodzic
b87b3d3043
commit
3f9ee9d5d5
|
@ -7,6 +7,10 @@
|
|||
* **Notable Fixes:**
|
||||
* fixed a costume-shrinkWrap edgecase bug, thanks, Brian, for reporting it!
|
||||
* fixed dynamic costume-inheritance for PASTE and CUT
|
||||
* fixed being unable to place the cursor at the end of a multi-line text
|
||||
|
||||
### 2020-11-12
|
||||
* morphic: fixed being unable to place the cursor at the end of a multi-line text
|
||||
|
||||
### 2020-11-11
|
||||
* objects: added meaningful defaults to blocks in the palette that didn't already have them
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Snap! 6.3.2 - dev - Build Your Own Blocks</title>
|
||||
<link rel="icon" href="src/favicon.ico">
|
||||
<script src="src/morphic.js?version=2020-11-02"></script>
|
||||
<script src="src/morphic.js?version=2020-11-12"></script>
|
||||
<script src="src/symbols.js?version=2020-10-07"></script>
|
||||
<script src="src/widgets.js?version=2020-10-06"></script>
|
||||
<script src="src/blocks.js?version=2020-11-02"></script>
|
||||
|
|
|
@ -1280,7 +1280,7 @@
|
|||
|
||||
/*global window, HTMLCanvasElement, FileReader, Audio, FileList, Map*/
|
||||
|
||||
var morphicVersion = '2020-November-02';
|
||||
var morphicVersion = '2020-November-12';
|
||||
var modules = {}; // keep track of additional loaded modules
|
||||
var useBlurredShadows = true;
|
||||
|
||||
|
@ -9438,7 +9438,7 @@ TextMorph.prototype.slotAt = function (aPoint) {
|
|||
charX = 0;
|
||||
}
|
||||
columnLength = this.lines[row - 1].length;
|
||||
while (col < columnLength - 2 && aPoint.x - this.left() > charX) {
|
||||
while (col < columnLength - 1 && aPoint.x - this.left() > charX) {
|
||||
charX += ctx.measureText(this.lines[row - 1][col]).width;
|
||||
col += 1;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue