This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 101247 - Disable auto-zoom in design view
Summary: Disable auto-zoom in design view
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: bhate
URL:
Keywords:
Depends on:
Blocks: 99509
  Show dependency tree
 
Reported: 2007-04-16 23:06 UTC by Lukas Jungmann
Modified: 2007-05-01 12:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2007-04-16 23:06:48 UTC
Currently if user uses a wheel on the mouse in design view then it triggers zoom
action. I'd prefer scrolling instead of zooming as a default operation/action on
the mouse wheel - imagine there's a web service with more than 3 (eg. 6)
operations and you want to get to the last/first one
Comment 1 Lukas Jungmann 2007-04-21 22:05:24 UTC
should be fixed for J1 to improve usability...
Comment 2 Roderico Cruz 2007-04-23 19:31:55 UTC
Reassigning to Ajit.
Comment 3 bhate 2007-04-25 00:16:52 UTC
Solution
- remove the Zoom and Pan actions attached to scene, which cause zoom effect,
when mouse wheel is moved.
- remove the SceneComponent's MouseWheelComponent which is itself, so that
mousewheel events are passed to scrollpane containing the SceneComponent.

Suggested fix
RCS file:
/cvs/websvc/design/src/org/netbeans/modules/websvc/design/view/DesignView.java,v
retrieving revision 1.22
diff -u -r1.22 DesignView.java
--- DesignView.java     19 Apr 2007 19:45:11 -0000      1.22
+++ DesignView.java     24 Apr 2007 23:05:50 -0000
+import java.awt.event.MouseWheelListener;
-import org.netbeans.api.visual.action.ActionFactory;
-        scene.getActions().addAction(ActionFactory.createZoomAction());
-        scene.getActions().addAction(ActionFactory.createPanAction());
+//        scene.getActions().addAction(ActionFactory.createZoomAction());
+//        scene.getActions().addAction(ActionFactory.createPanAction());

       JComponent sceneView = scene.createView();
+        sceneView.removeMouseWheelListener((MouseWheelListener)sceneView);

Comment 4 Roderico Cruz 2007-04-25 00:17:47 UTC
Fix looks fine.
Comment 5 bhate 2007-04-25 00:19:46 UTC
fixed in trunk
/cvs/websvc/design/src/org/netbeans/modules/websvc/design/view/DesignView.java,v
 <--  DesignView.java
new revision: 1.23; previous revision: 1.22
Comment 6 Lukas Jungmann 2007-05-01 12:28:42 UTC
v.