From 967834fa9f8dd3d708327a93bc895f5005407a17 Mon Sep 17 00:00:00 2001
From: Christoph Herold <coeamyd@users.noreply.github.com>
Date: Thu, 11 Jun 2015 13:00:50 +0200
Subject: [PATCH] Added touch event handling

---
 js/splitter.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/js/splitter.js b/js/splitter.js
index 8d30154..abd6138 100644
--- a/js/splitter.js
+++ b/js/splitter.js
@@ -29,7 +29,7 @@ angular.module('bgDirectives', [])
         
         pane1.elem.after(handler);
         
-        element.bind('mousemove', function (ev) {
+        element.bind('mousemove touchmove', function (ev) {
           if (!drag) return;
           
           var bounds = element[0].getBoundingClientRect();
@@ -61,12 +61,12 @@ angular.module('bgDirectives', [])
           }
         });
     
-        handler.bind('mousedown', function (ev) { 
+        handler.bind('mousedown touchstart', function (ev) { 
           ev.preventDefault();
           drag = true; 
         });
     
-        angular.element(document).bind('mouseup', function (ev) {
+        angular.element(document).bind('mouseup touchend', function (ev) {
           drag = false;
         });
       }