kopia lustrzana https://github.com/backface/turtlestitch
fixed mouseDown events for touch devices
rodzic
32f95aba5c
commit
7261dbb462
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
## in development:
|
## in development:
|
||||||
|
|
||||||
|
### 2020-07-23
|
||||||
|
* morphic: fixed mouseDown events for touch devices
|
||||||
|
|
||||||
### 2020-07-22
|
### 2020-07-22
|
||||||
* morphic, blocks, gui: tweaked block-fading mouse-over
|
* morphic, blocks, gui: tweaked block-fading mouse-over
|
||||||
* blocks, threads: tweaked context visualizations to be alpha-independent
|
* blocks, threads: tweaked context visualizations to be alpha-independent
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
<title>Snap! Build Your Own Blocks 6.0.1 - dev -</title>
|
<title>Snap! Build Your Own Blocks 6.0.1 - dev -</title>
|
||||||
<link rel="icon" href="src/favicon.ico">
|
<link rel="icon" href="src/favicon.ico">
|
||||||
<script src="src/morphic.js?version=2020-07-22"></script>
|
<script src="src/morphic.js?version=2020-07-23"></script>
|
||||||
<script src="src/symbols.js?version=2020-07-21"></script>
|
<script src="src/symbols.js?version=2020-07-21"></script>
|
||||||
<script src="src/widgets.js?version=2020-07-21"></script>
|
<script src="src/widgets.js?version=2020-07-21"></script>
|
||||||
<script src="src/blocks.js?version=2020-07-22"></script>
|
<script src="src/blocks.js?version=2020-07-22"></script>
|
||||||
|
|
|
@ -1280,7 +1280,7 @@
|
||||||
|
|
||||||
/*global window, HTMLCanvasElement, FileReader, Audio, FileList, Map*/
|
/*global window, HTMLCanvasElement, FileReader, Audio, FileList, Map*/
|
||||||
|
|
||||||
var morphicVersion = '2020-July-22';
|
var morphicVersion = '2020-July-23';
|
||||||
var modules = {}; // keep track of additional loaded modules
|
var modules = {}; // keep track of additional loaded modules
|
||||||
var useBlurredShadows = true;
|
var useBlurredShadows = true;
|
||||||
|
|
||||||
|
@ -11284,10 +11284,12 @@ HandMorph.prototype.processMouseDown = function (event) {
|
||||||
posInDocument = getDocumentPositionOf(this.world.worldCanvas);
|
posInDocument = getDocumentPositionOf(this.world.worldCanvas);
|
||||||
|
|
||||||
// update my position, in case I've just been initialized
|
// update my position, in case I've just been initialized
|
||||||
this.setPosition(new Point(
|
if (event.pageX) {
|
||||||
event.pageX - posInDocument.x,
|
this.setPosition(new Point(
|
||||||
event.pageY - posInDocument.y
|
event.pageX - posInDocument.x,
|
||||||
));
|
event.pageY - posInDocument.y
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
// process the actual event
|
// process the actual event
|
||||||
this.destroyTemporaries();
|
this.destroyTemporaries();
|
||||||
|
|
Ładowanie…
Reference in New Issue