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.
Summary: | Disable auto-zoom in design view | ||
---|---|---|---|
Product: | webservices | Reporter: | Lukas Jungmann <jungi> |
Component: | Code | Assignee: | bhate <bhate> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 99509 |
Description
Lukas Jungmann
2007-04-16 23:06:48 UTC
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. |