Code

Extensions. Text support improvement in XAML and FXG export.
[inkscape.git] / share / extensions / jessyInk_core_mouseHandler_zoomControl.js
index 7cbb85038e3e52e2f3b6b06ee7834704b3b51d65..fba33d34f7461abcdd67c6b0840fbf9639a65422 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env js
 // Copyright 2008, 2009 Hannes Hochreiner
 // This program is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -91,6 +90,8 @@ function jessyInk_core_mouseHandler_zoomControl(obj)
                startTime = (new Date()).getTime();
                lastFrameTime = null;
                effect(1);
+
+               return false;
        }
 
        /** Function to search for the element the user clicked on.
@@ -307,17 +308,6 @@ function jessyInk_core_mouseHandler_zoomControl(obj)
                svgPoint.x = e.clientX + window.pageXOffset;
                svgPoint.y = e.clientY + window.pageYOffset;
 
-               // The following is needed for Google Chrome, but causes problems
-               // with Firefox, as viewport is not implemented in Firefox 3.5.
-               try
-               {
-                       svgPoint.x += document.rootElement.viewport.x;
-                       svgPoint.y += document.rootElement.viewport.y;
-               }
-               catch (ex)
-               {
-               }
-
                return svgPoint;
        }