bugGNU nano - Bugs: bug #51802, mouse wheel scrolls three pages...

 
 

bug #51802: mouse wheel scrolls three pages instead of three lines

Submitted by:  None
Submitted on:  Sun 20 Aug 2017 04:47:14 PM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 17 Sep 2017 11:32:05 AM UTC, comment #3:

For completeness: the bug was caused a year ago by commit 2225d541 that mistakenly replaced do_up() with KEY_PPAGE, and do_down() with KEY_NPAGE. My fault.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 28 Aug 2017 07:11:21 PM UTC, comment #2:

Released in 2.8.7.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 20 Aug 2017 06:50:30 PM UTC, comment #1:

Thanks for reporting. Fixed in git, commit 243380c4.

(Apparently my ncurses emulates the mouse wheel, because forme it works fine without the patch.)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 20 Aug 2017 04:47:14 PM UTC, original submission:

nano version 2.7.5 and 2.8.6
when using with ncurses mouse version 2, nano -m results in scrolling 3 pages with every click of the mouse wheel

src/winio.c lines 1708-1713 read

/* One upward roll of the mouse wheel is equivalent to
* moving up three lines, and one downward roll of the mouse
* wheel is equivalent to moving down three lines. */
for (i = 0; i < 3; i++)
unget_kbinput((mevent.bstate & BUTTON4_PRESSED) ?
KEY_PPAGE : KEY_NPAGE, FALSE);

In order to work correctly (3 lines per roll) the last line should read

KEY_UP : KEY_DOWN, FALSE);

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 28 Aug 2017 07:11:21 PM UTCbensOpen/ClosedOpen=>Closed
    Sun 20 Aug 2017 06:50:30 PM UTCbensStatusNone=>Fixed
      Assigned toNone=>bens
      SummaryBroken mouse scrolling=>mouse wheel scrolls three pages instead of three lines

    Back to the top


    Powered by Savane 3.1-cleanup1