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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitter:  None
Submitted:  Sun 20 Aug 2017 04:47:14 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

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>
Group administrator
Mon 28 Aug 2017 07:11:21 PM UTC, comment #2: 

Released in 2.8.7.

Benno Schulenberg <bens>
Group administrator
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>
Group administrator
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.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-28 bens Open/ClosedOpen Closed
    2017-08-20 bens StatusNone Fixed
        Assigned toNone bens
        SummaryBroken mouse scrolling mouse wheel scrolls three pages instead of three lines

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code