Fixed resize bug

This commit is contained in:
Lewis Hemens 2014-01-19 12:42:51 +00:00
parent ebd003adb2
commit aa396c8324
4 changed files with 5 additions and 5 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ closure-library/*
.settings/*
js-compiled.js
*~
_site/*

View File

@ -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;
}

View File

@ -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

View File

@ -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;