Changeset 9ee55cd in mainline for uspace/app/nav/panel.c


Ignore:
Timestamp:
2021-10-25T00:32:45Z (3 years ago)
Author:
jxsvoboda <5887334+jxsvoboda@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d0fd86a
Parents:
e0377075
git-author:
Jiri Svoboda <jiri@…> (2021-10-24 22:04:28)
git-committer:
jxsvoboda <5887334+jxsvoboda@…> (2021-10-25 00:32:45)
Message:

Page up/down by mouse click on panel border

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/nav/panel.c

    re0377075 r9ee55cd  
    353353                        /* Move to the entry found */
    354354                        panel_cursor_move(panel, entry, entry_idx);
     355                } else {
     356                        /* It's in the border. Top or bottom half? */
     357                        if (pos.y >= (irect.p0.y + irect.p1.y) / 2)
     358                                panel_page_down(panel);
     359                        else
     360                                panel_page_up(panel);
    355361                }
    356362        }
Note: See TracChangeset for help on using the changeset viewer.