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.
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
should be fixed for J1 to improve usability...
Reassigning to Ajit.
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);
Fix looks fine.
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
v.