Issue 47331 - Mouse scroll wheel in normal view scrolls wrong window
Summary: Mouse scroll wheel in normal view scrolls wrong window
Status: ACCEPTED
Alias: None
Product: Impress
Classification: Application
Component: ui (show other issues)
Version: 680m90
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-13 10:08 UTC by jmills
Modified: 2017-05-20 10:44 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description jmills 2005-04-13 10:08:10 UTC
Open/create a many slide preentation.  Select normal view.

If you position the mouse over the thumbnail images and scroll, the thumbnail
images scroll.  This is correct.

If you position the mouse over the scroll bar for the thumbnail images and
scroll - nothing happens  (NOT what you would expect)

If you position the mouse of the (large) slide image and scroll - the image
moves up and down - as you would expect.

If you position the mouse over the Scroll bar for the (large) slide image and
scroll - the *thumbnail* window scrolls!  NOT what you would expect.

It's almost as if the scroll wheel even is tied to the wrong pane.
Comment 1 wolframgarten 2005-04-13 10:31:19 UTC
Teh last one I cannot reproduce. Maybe the focus was set to teh slide browser
then. 1-3 I can reproduce.
Comment 2 wolframgarten 2005-04-13 10:32:39 UTC
Reassigned.
Comment 3 jmills 2005-04-13 10:51:12 UTC
Have just installed m93 and tried again.

4 still occurs with m93.  To ensure focus I have also tried this sequence, and
confirm the results as originally published.

Position mouse over the scroll bar "elevator", LEFT-CLICK, and then scroll.

What I find with m93 is that UNLESS the mouse cursor is over the thumbnail
"area", or the right hand area (eg "Layouts" in this case) the central (large) 
slide image scrolls.  If it is over the left or right thumnail or "layouts"
area, then they scroll as expected.

Comment 4 jmills 2005-04-13 10:54:04 UTC
Update on case 4:  The left scroll bar (aka the Thumbnail scrollbar)
scrolls the currently focussed pane - not the thumbnail pane..


Comment 5 groucho266 2005-04-18 14:22:15 UTC
The four scroll bars (horizontal and vertical of slide sorter bar and edit view)
scroll the focused pane.
Comment 6 groucho266 2005-04-18 15:53:46 UTC
The problem here is that ::ImplHandleWheelEvent() in
vcl/source/window/winproc.cxx informs the window under the mouse and its parents
or the window that has the focus.  The former fails in this case because neither
the scroll bars (the window under the mouse) nor their parents
(PaneDockingWindow resp. the frame window) have special code to handle the event
or have a direct connection to the view shell they are displaying. Therefore the
focused window is informed, an ::sd::Window in both cases.  These tell their
view shells, either the slide sorter or the view shell in the center pane.  As a
result the focused window is scrolled.

Note that this time the view shell stack is not playing a part.

A solution can place the scroll bars in a parent window that can forward the
mouse wheel events to their view shells.  Modifying the existing parents would
work only for the PaneDockingWindow.  The parent of the scroll bars in the
center pane is not in our domain.

Alternatively the ViewShell that receives the event can check the mouse
coordinates and reroute the event to the correct shell.
Comment 7 groucho266 2005-04-18 16:15:01 UTC
The problem with the new parent window is that for Accessibility we have to
remove this window from the hierarchy of Accessibility objects.
Comment 8 groucho266 2005-05-24 14:03:32 UTC
Due to resource constraints I set the target to OOo Later.
Comment 9 Christophe Strobbe 2013-08-17 16:36:31 UTC
I rechecked this in Apache OpenOffice 4.0.0 on Windows 7 (32 bits) and found the following behaviours (compared to the original bug report):

1. If you position the mouse over the thumbnail images (i.e. the Slide Pane) and scroll, the thumbnail images scroll. This is correct.

2. If you position the mouse over the Slide Pane's scroll bar and scroll, the slide in the editing area scrolls (while the original bug said that nothing happened). This is not what you would expect. Moreover, this also happens when you click on the scroll bar's slider before scrolling (unlike the observation in comment 3). If you first click on a thumbnail in the Slides Pane and then hover over the scroll bar, the mouse wheel will make the Slides Pane scroll; as long as a thumbnail in the Slides Pane has focus, the Slides Pane will also scroll when you use the mouse wheel over the closed sidebar to the right of the editing area. 

3. If you position the mouse over the (large) slide image (i.e. the editing area) and scroll, the slide scrolls - as you would expect.

4. If you position the mouse over the editing area's scroll bar and scroll, the slide scrolls (while the original bug said that the *thumbnail* window scrolled). This is also correct.

Conclusion: only the second item is still an issue, especially because after opening a slide deck, the first thumbnail in the Slides Pane seems to have the initial focus (at least visually, by virtue of the border around it).
Comment 10 Marcus 2017-05-20 10:44:58 UTC
Reset the assignee to the default "issues@openoffice.apache.org".