From 8d26b2871b711d18e042a7f14d1b7e9a253dee74 Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Tue, 2 Dec 2014 01:14:23 -0500 Subject: change how shit wraps --- js/app.js | 8 -------- 1 file changed, 8 deletions(-) (limited to 'js/app.js') diff --git a/js/app.js b/js/app.js index b2f1dfa..bebfec2 100644 --- a/js/app.js +++ b/js/app.js @@ -77,26 +77,18 @@ function bind () { return case 38: // up e.preventDefault() - direction[0] = -1 - direction[1] = 0 current_canvas.focusLex(focused.y + direction[0], focused.x + direction[1]) break case 40: // down e.preventDefault() - direction[0] = 1 - direction[1] = 0 current_canvas.focusLex(focused.y + direction[0], focused.x + direction[1]) break case 37: // left e.preventDefault() - direction[0] = 0 - direction[1] = -1 current_canvas.focusLex(focused.y + direction[0], focused.x + direction[1]) break case 39: // right e.preventDefault() - direction[0] = 0 - direction[1] = 1 current_canvas.focusLex(focused.y + direction[0], focused.x + direction[1]) break // default: -- cgit v1.2.3-70-g09d2