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 148078 - Ctrl+mousewheel to zoom doesn't work
Summary: Ctrl+mousewheel to zoom doesn't work
Status: VERIFIED WONTFIX
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords: REGRESSION
Depends on:
Blocks: 142003
  Show dependency tree
 
Reported: 2008-09-23 18:00 UTC by Sergey Petrov
Modified: 2008-10-04 01:12 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 Sergey Petrov 2008-09-23 18:00:08 UTC
Ctrl+mousewheel to zoom doesn't work
Comment 1 Sergey Petrov 2008-09-24 08:42:48 UTC
after small investigation, next code in UMLTopComponent cause this issue:
//
            for(MouseWheelListener listener : diagramView.getMouseWheelListeners())
            {
                diagramView.removeMouseWheelListener(listener);
            }
//
not sure what was the reason to do it. if it's the only way to make scrolling in diagram view it may be visual library
issue and need to be filed against visual library. otherwise we got no wheel evens in our action.
Comment 2 Sergey Petrov 2008-09-24 08:49:44 UTC
regresssion from http://hg.netbeans.org/uml-main/rev/937ca322734b
fix for issue 137362
Comment 3 Trey Spiva 2008-09-24 16:16:36 UTC
The problem is that if a JComponent has ANY mouse wheel listeners then the JScrollPane can not handle the scrolling of the view via the mouse wheel.  We 
could implement that behavior ourselves, however the native handling is always better.  For example on the Mac the JScrollPane will handle both horizontal 
and vertical scrolling via the mouse wheel.  However since there is not MouseEvent for horizontal mouse wheel behavior our own implementation can not 
handle this.  However if we let the JScrollPane handle the mouse wheel the horizontal scrolling will work correctly.  

Since all of the other editor can vertically and horizontally scroll (since they use the JScrollPane implementation) it would be strange if we do not also handle 
this situation.  Also since we did not have this behavior in 6.1 I do not think we need it in 6.5.
Comment 4 Sergey Petrov 2008-09-24 16:32:34 UTC
can you give more details?
what behavior we don't have in 6.1? we have alt-wheel zoom and wheel scroll at the same time.
it's really common for visual tool to have ctrl-wheel zoom also, the same as wheel scrolling also.
having a lot of won't fix may hit quality and usability of our tool.
Comment 5 Peter Lam 2008-10-04 01:12:01 UTC
ok, no more support for ctrl+mousewheel to zoom.