moved touch events listeners to touch.js
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2449 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -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 = {},
|
||||
|
||||
@@ -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);
|
||||
Reference in New Issue
Block a user