Fixed resize bug
This commit is contained in:
parent
ebd003adb2
commit
aa396c8324
|
@ -3,3 +3,4 @@ closure-library/*
|
|||
.settings/*
|
||||
js-compiled.js
|
||||
*~
|
||||
_site/*
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
|
||||
<title>asciiflow-2.0</title>
|
||||
<title>ASCIIFlow Infinity</title>
|
||||
<style>
|
||||
#menu {
|
||||
margin-left: auto;
|
||||
|
@ -14,7 +14,6 @@
|
|||
right: 0px;
|
||||
z-index: 100;
|
||||
width: 320px;
|
||||
background: #EEE;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
@ -7,8 +7,8 @@ goog.require('ascii.StateController');
|
|||
goog.require('ascii.Vector');
|
||||
goog.require('ascii.View');
|
||||
|
||||
/** @const */ var DRAG_LATENCY = 150; // Milliseconds.
|
||||
/** @const */ var DRAG_ACCURACY = 0.1; // Pixels.
|
||||
/** @const */ var DRAG_LATENCY = 130; // Milliseconds.
|
||||
/** @const */ var DRAG_ACCURACY = 3; // Pixels.
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
|
|
|
@ -216,7 +216,7 @@ DrawMove.prototype.followLine = function(startPosition, direction) {
|
|||
var junctions = [];
|
||||
while (true) {
|
||||
var nextEnd = endPosition.add(direction);
|
||||
if (!this.state.isSpecial(nextEnd)) {
|
||||
if (!this.state.isSpecial(endPosition) || !this.state.isSpecial(nextEnd)) {
|
||||
return junctions;
|
||||
}
|
||||
endPosition = nextEnd;
|
||||
|
|
Loading…
Reference in New Issue