summaryrefslogtreecommitdiffstats
path: root/src/svgpan.js
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2011-09-25 13:05:36 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2011-09-25 13:05:36 (GMT)
commit214233ffd78420a2b80f5b477ba59a5b65c41c87 (patch)
tree5f64338de08ce72826ca0878c754638fed1587d4 /src/svgpan.js
parent5c424c553763d3f56f56e3fa3336b0f1f4a3c44a (diff)
downloadDoxygen-214233ffd78420a2b80f5b477ba59a5b65c41c87.zip
Doxygen-214233ffd78420a2b80f5b477ba59a5b65c41c87.tar.gz
Doxygen-214233ffd78420a2b80f5b477ba59a5b65c41c87.tar.bz2
Release-1.7.5.1-20110925
Diffstat (limited to 'src/svgpan.js')
-rw-r--r--src/svgpan.js19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/svgpan.js b/src/svgpan.js
index da381fd..7c0c916 100644
--- a/src/svgpan.js
+++ b/src/svgpan.js
@@ -173,30 +173,15 @@ function handleMouseWheel(evt)
if (state!='pan')
{
-
var delta;
-
- if(evt.wheelDelta)
+ if (evt.wheelDelta)
{
- if (window.opera)
- {
- delta = evt.wheelDelta / 720; // Opera
- }
- else if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1 ||
- navigator.appVersion.indexOf("MSIE") != -1)
- {
- delta = evt.wheelDelta / 7200; // Chrome/IE9
- }
- else
- {
- delta = evt.wheelDelta / 72000; // Safari
- }
+ delta = evt.wheelDelta / 7200; // Opera/Chrome/IE9/Safari
}
else
{
delta = evt.detail / -180; // Mozilla
}
-
var svgDoc = evt.target.ownerDocument;
var g = svgDoc.getElementById("viewport");
var p = getEventPoint(evt);