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