Moving the scrollbar thumb to the top of the page then pressing page up causes the page to go up one page and then a subsequent page up press causes the page to go up one page.
Moving the scrollbar thumb to the bottom of the page then pressing page down causes the page to go down one page and then a subsequent page down press causes the page to go down one page.
Actual behaviour
Moving the scrollbar thumb to the top of the page then pressing page up causes the page to go up one page and then a subsequent page up press causes the page to go to the top of the page.
Moving the scrollbar thumb to the bottom of the page then pressing page down causes the page to go down one page and then a subsequent page down press causes the page to go to the bottom of the page.
Steps to reproduce the behaviour
For top of page issue:
Have a long document.
Move scrollbar thumb to the middle of the scrollbar.
Click somewhere in the page content with the scrollbar in that position.
Move the scrollbar thumb to the top of the page.
Press Page Up
Press Page Up again.
Notice the page goes all the way to the top of the page instead of just going one page up.
For bottom of page issue:
Have a long document.
Move scrollbar thumb to the middle of the scrollbar.
Click somewhere in the page content with the scrollbar in that position.
Move the scrollbar thumb to the bottom of the page.
Press Page Down
Press Page Down again.
Notice the page goes all the way to the bottom of the page instead of just going one page down.
Notes:
The scrollbar thumb doesn't necessarily have to be in the middle of the page, but it helps reproduce the issue. Also, the page contents don't necessarily need to be clicked when moving the scroll thumb down, but it helps reproduce the issue. What happens is the cursor goes to the very top or bottom of the page if page up or page down is pressed until it can't be pressed with effect anymore and can be confusing when no action happens to reproduce this since the cursor needs to initially be somewhere that's not the very top or bottom of the page for steps 4-7 to work.
This may be due to the cursor position being reset when the scroll thumb reaches the end or top of the document by step 6 instead of maintaining the state from the previous page up/page down.
This issue also occurs in gedit (at least 3.38.2).
Expected behaviour
Moving the scrollbar thumb to the top of the page then pressing page up causes the page to go up one page and then a subsequent page up press causes the page to go up one page.
Moving the scrollbar thumb to the bottom of the page then pressing page down causes the page to go down one page and then a subsequent page down press causes the page to go down one page.
Actual behaviour
Moving the scrollbar thumb to the top of the page then pressing page up causes the page to go up one page and then a subsequent page up press causes the page to go to the top of the page.
Moving the scrollbar thumb to the bottom of the page then pressing page down causes the page to go down one page and then a subsequent page down press causes the page to go to the bottom of the page.
Steps to reproduce the behaviour
For top of page issue:
Page Up
Page Up
again.For bottom of page issue:
Page Down
Page Down
again.Notes: The scrollbar thumb doesn't necessarily have to be in the middle of the page, but it helps reproduce the issue. Also, the page contents don't necessarily need to be clicked when moving the scroll thumb down, but it helps reproduce the issue. What happens is the cursor goes to the very top or bottom of the page if page up or page down is pressed until it can't be pressed with effect anymore and can be confusing when no action happens to reproduce this since the cursor needs to initially be somewhere that's not the very top or bottom of the page for steps 4-7 to work.
This may be due to the cursor position being reset when the scroll thumb reaches the end or top of the document by step 6 instead of maintaining the state from the previous page up/page down.
This issue also occurs in gedit (at least 3.38.2).
Pluma version
master (1.25.3)
MATE general version
1.25.2
Linux Distribution
Fedora