moved touch events listeners to touch.js
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2449 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
c955780639
commit
61be265b91
|
@ -17,11 +17,6 @@
|
||||||
|
|
||||||
(function() {
|
(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($) {
|
if (!window.svgEditor) window.svgEditor = function($) {
|
||||||
var svgCanvas,
|
var svgCanvas,
|
||||||
Editor = {},
|
Editor = {},
|
||||||
|
|
|
@ -25,3 +25,8 @@ function touchHandler(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.addEventListener('touchstart', touchHandler, true);
|
||||||
|
document.addEventListener('touchmove', touchHandler, true);
|
||||||
|
document.addEventListener('touchend', touchHandler, true);
|
||||||
|
document.addEventListener('touchcancel', touchHandler, true);
|
Loading…
Reference in New Issue