From e5925be8bf028f9eeafa88892212fe667f4e90fb Mon Sep 17 00:00:00 2001 From: Kevin Dungs Date: Sat, 8 Nov 2014 14:34:53 +0100 Subject: [PATCH] Fix #27 and #68. This time for real. --- js/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/app.js b/js/app.js index 678228b..848391d 100644 --- a/js/app.js +++ b/js/app.js @@ -39,6 +39,11 @@ }; }); + // Hack to prevent text highlighting + document.getElementById('detector').addEventListener('mousedown', function(e) { + e.preventDefault(); + }); + app.controller('LabController', ['$interval', function($interval) { this.lab = lab; this.showDetectorInfo = function() {