about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStevan Andjelkovic <stevan.andjelkovic@strath.ac.uk>2012-01-04 16:11:47 +0100
committerStevan Andjelkovic <stevan.andjelkovic@strath.ac.uk>2012-01-04 16:11:47 +0100
commit2a45362810ed76e558cd534caa187f7a893fba4e (patch)
tree5d6373bb301b20ed738e0eb5c70d320809db701c
parent6266ed650490e2637b801a4b3a7d50512a7cd0a1 (diff)
downloadxombrero-2a45362810ed76e558cd534caa187f7a893fba4e.tar.gz
Some more fixes for autoscroll
-rw-r--r--autoscroll.js4
-rw-r--r--freebsd/Makefile2
-rw-r--r--linux/Makefile2
3 files changed, 4 insertions, 4 deletions
diff --git a/autoscroll.js b/autoscroll.js
index b0adc69..bfe3bb9 100644
--- a/autoscroll.js
+++ b/autoscroll.js
@@ -108,11 +108,11 @@ MouseAutoScroll = (function() {
   }
   function mouseDown (e) {
     var t = e.target;
-    if (ev.button == 0) {
+    if (e.button == 0) {
       if (span) {
         clear();
       }
-    } else if (ev.button == 1) {
+    } else if (e.button == 1) {
       if (span) {
         clear();
       }
diff --git a/freebsd/Makefile b/freebsd/Makefile
index 5f4cc1f..7c56c03 100644
--- a/freebsd/Makefile
+++ b/freebsd/Makefile
@@ -15,7 +15,7 @@ CC?= cc
 
 all: ../javascript.h xxxterm
 
-../javascript.h: ../js-merge-helper.pl ../hinting.js
+../javascript.h: ../js-merge-helper.pl ../hinting.js ../autoscroll.js
 	perl ../js-merge-helper.pl ../hinting.js ../input-focus.js \
 	../autoscroll.js > ../javascript.h
 
diff --git a/linux/Makefile b/linux/Makefile
index d258507..986f95c 100644
--- a/linux/Makefile
+++ b/linux/Makefile
@@ -18,7 +18,7 @@ CC?= gcc
 
 all: javascript.h xxxterm
 
-javascript.h: ../js-merge-helper.pl ../hinting.js
+javascript.h: ../js-merge-helper.pl ../hinting.js ../autoscroll.js
 	perl ../js-merge-helper.pl ../hinting.js ../input-focus.js \
 	../autoscroll.js > javascript.h