diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-01-17 07:26:48 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-01-17 07:26:48 +0000 |
commit | 7a003f5bbf49082dcf24105aa6f7bc8c6650c255 (patch) | |
tree | ce7f534a8b74dff0f5c280ccaa7b862a29b27023 /sca-cpp/trunk/modules/edit/htdocs/graph/graph.js | |
parent | f90791f2f7b48d7e08ce08f7ead498e1191a96b8 (diff) |
Use a common stylesheet in all samples.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1059769 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/modules/edit/htdocs/graph/graph.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sca-cpp/trunk/modules/edit/htdocs/graph/graph.js b/sca-cpp/trunk/modules/edit/htdocs/graph/graph.js index 1d3b730539..c391afaf23 100644 --- a/sca-cpp/trunk/modules/edit/htdocs/graph/graph.js +++ b/sca-cpp/trunk/modules/edit/htdocs/graph/graph.js @@ -378,6 +378,7 @@ if (ui.isIE()) { div.style.position = 'absolute'; div.style.left = pos.xpos(); div.style.top = pos.ypos(); + // -webkit-user-select: none; document.body.appendChild(div); var svg = document.createElementNS(graph.svgns, 'svg'); @@ -428,11 +429,19 @@ if (ui.isIE()) { window.top.onmouseup = window.onmouseup; window.ontouchend = window.onmouseup; + window.gestureend = window.onmouseup; + window.top.gestureend = window.onmouseup; window.top.ontouchend = window.onmouseup; + window.ontouchcancel = window.onmouseup; + window.top.ontouchcancel = window.onmouseup; window.onmousemove = function(e) { if (graph.dragging == null) return false; + if (e.preventDefault) + e.preventDefault(); + else + e.returnValue = false; var pmatrix = graph.dragging.parentNode.getCTM(); var matrix = graph.dragging.getCTM(); var curX = pmatrix != null? (Number(matrix.e) - Number(pmatrix.e)): Number(matrix.e); |