diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-26 03:40:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-26 03:40:36 +0200 |
commit | 68acb41f990405cb5ccd33fcba71a5d499c82974 (patch) | |
tree | 3fbba68540725a037037a67c393fd822d8f25e6c /runtime | |
parent | c2a43165004f944a909428e80700130745c08ed0 (diff) |
patch 8.1.1597: cannot scroll a popup window with the mousev8.1.1597
Problem: Cannot scroll a popup window with the mouse.
Solution: If the popup window has a scrollbar let the mouse scroll wheel
scroll the window.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/popup.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/runtime/doc/popup.txt b/runtime/doc/popup.txt index 21af8f9e2e..f7b9648c0d 100644 --- a/runtime/doc/popup.txt +++ b/runtime/doc/popup.txt @@ -85,11 +85,11 @@ That way you can still see where it is, even though you cannot see the text that it is in. - TODO: -- When the lines do not fit show a scrollbar (like in the popup menu). -- Use the mouse wheel for scrolling. -- Have a way to scroll to the botton. (#4577) +- click near top of scrollbar scrolls down, clear near bottom scrolls up. +- Allow for setting scrollbar color: scrollbarhighlight, + scrollbarthumbhighlight ? +- Have a way to scroll to the bottom? (#4577) - Why does 'nrformats' leak from the popup window buffer??? - Disable commands, feedkeys(), CTRL-W, etc. in a popup window. Use ERROR_IF_POPUP_WINDOW for more commands. @@ -275,6 +275,8 @@ popup_getpos({id}) *popup_getpos()* core_line screen line of the text box core_width width of the text box in screen cells core_height height of the text box in screen cells + firstline line of the buffer at top (1 unless scrolled) + scrollbar non-zero if a scrollbar is displayed visible one if the popup is displayed, zero if hidden Note that these are the actual screen positions. They differ from the values in `popup_getoptions()` for the sizing and @@ -483,7 +485,6 @@ The second argument of |popup_create()| is a dictionary with options: Also see "scrollbar". hidden When TRUE the popup exists but is not displayed; use `popup_show()` to unhide it. - {not implemented yet} tabpage When -1: display the popup on all tab pages. When 0 (the default): display the popup on the current tab page. |