moved touch events listeners to touch.js

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2449 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Bruno Heridet 2013-02-21 14:48:24 +00:00
parent c955780639
commit 61be265b91
2 changed files with 5 additions and 5 deletions

View File

@ -17,11 +17,6 @@
(function() {
document.addEventListener('touchstart', touchHandler, true);
document.addEventListener('touchmove', touchHandler, true);
document.addEventListener('touchend', touchHandler, true);
document.addEventListener('touchcancel', touchHandler, true);
if (!window.svgEditor) window.svgEditor = function($) {
var svgCanvas,
Editor = {},

View File

@ -25,3 +25,8 @@ function touchHandler(event) {
event.preventDefault();
}
}
document.addEventListener('touchstart', touchHandler, true);
document.addEventListener('touchmove', touchHandler, true);
document.addEventListener('touchend', touchHandler, true);
document.addEventListener('touchcancel', touchHandler, true);