Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 24392

Summary: [Intro] Mouse click in scroll bar scrolls one line
Product: [Eclipse Project] Platform Reporter: Knut Radloff <knut_radloff>
Component: User AssistanceAssignee: platform-ua-inbox <platform-ua-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P4    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Knut Radloff CLA 2002-10-04 10:38:39 EDT
build 20021001

When you click below or above the scroll thumb in a scroll bar the welcome 
editor scrolls one line. It should scroll one page (same distance as page 
up/down key). 
Line scrolling can already be done by clicking the scroll arrow buttons.
Comment 1 Andrew Irvine CLA 2002-11-18 08:53:58 EST
A question on behaviour.  As the welcome page is made up of multiple styled 
text widgets what behaviour should be exhibited when the page up/page down 
scroll distance does not land in one of the text widgets?  That is, what if 
the action were to cause the cursor to attempt to position in the white space 
between widgets?  I am currently thinking to position it in the next/previous 
widget, but then the distance scrolled is greater/less than one page.

Suggestions, comments?
Comment 2 Lynne Kues CLA 2002-11-18 10:58:11 EST
What you are talking about should only be an issue when the Page Up and Page 
Down keys are pressed, not when you click above/below the scroll thumb in the 
scroll bar.  For this case, the caret should not move.
Comment 3 Knut Radloff CLA 2002-11-18 11:10:26 EST
Agree with Lynne about mouse initiated scroll. As for keyboard scroll the caret 
should probably be in the last visible widget on the page after the scroll if 
you scroll down or in the topmost visible widget when you scroll up.

The question is, why do we have a caret in the first place? You can't edit text 
and I doubt that selecting text in a welcome editor is particularly useful. 
Also, you could still select text using the mouse.
I think the best solution would be to get rid of the caret and simply page 
scroll.

If we think we need a caret you also have to handle the case were no text 
widget is visible after a page scroll. In that case the caret should probably 
go in the widget that is nearest the bottom/top edge for page down/up 
respectively.
Comment 4 Andrew Irvine CLA 2002-11-18 12:34:10 EST
I am also in agreement with Lynne.  I am still thinking about the case of page 
up/down and whether I should keep the caret or not.

The welcome editor is as you know read only.  That being said the ability to 
copy the text elsewhere is supported, as requested by a different PR.  Thus I 
believe we must keep the caret.  

If I page up/down and I don't move the caret, then a subsequent tab would 
cause the editor to flash back to where it last was.  This is contrary to the 
behaviour exhibited by the current java editors.

Summary:
I will not move the caret on mouse initiated scrolls.
For single line keyboard scrolls I will just jump to the appropriate widget 
when required.  For page up/down keyboard scrolls I will do the behavior as 
described by Knut.
Comment 5 Andrew Irvine CLA 2002-12-03 09:05:48 EST
*** Bug 27545 has been marked as a duplicate of this bug. ***
Comment 6 Kevin Haaland CLA 2003-02-07 16:52:00 EST
Defer
Comment 7 Hal Perkins CLA 2004-03-31 01:57:46 EST
I ran across this behavior recently and was surprised to see it had been reported a long time ago but 
was still open.  Clicking above or below the thumb in a scroll bar normally flips a full screen.  Although 
there may be implementation reasons why this isn't what happens in the welcome screen, it is 
surprising to a user who expects scroll bars to work in the usual way.
Comment 8 Curtis d'Entremont CLA 2006-06-22 10:57:18 EDT
Seems to work fine for me in 3.2. Closing.