On Sun, 18 Jul 2010, björn wrote:
> On 16 July 2010 21:03, björn wrote:
> > On 16 July 2010 14:52, Benjamin R. Haskell wrote:
> >> On Fri, 16 Jul 2010, björn wrote:
> >>
> >> As long as you're adding MouseScroll{Left,Right,Up,Down}, would
> >> this be a good time to reverse the naming? (The oddity that
> >> <MouseUp> indicates pushing the scrollwheel toward the bottom of
> >> the mouse [i.e. down]?)
> >>
> >> So, where 'wheel' indicates a standard scrollwheel or the
> >> supermouse-like trackball:
> >>
> >> <MouseScrollUp> (Same as <MouseDown>) (pressing up on 'wheel')
> >> <MouseScrollDown> (Same as <MouseUp>) (pressing down on 'wheel')
> >> <MouseScrollLeft> (pressing left on 'wheel')
> >> <MouseScrollRight> (pressing right on 'wheel')
> >>
> >> [probably too confusing, and too late, but just a thought]
> >
> > I don't think this is a bad idea. Are there any objections?
>
> Ok, here is the updated patch. I've renamed the keys as follows:
>
> <ScrollWheelUp>
> <ScrollWheelDown>
> <ScrollWheelLeft>
> <ScrollWheelRight>
>
> These all scroll the _window_ in the direction indicated. So if I
> push UP on my scroll wheel, the window moves up but the lines are
> actually scrolled down (this is the most intuitive way of thinking
> about scrolling in my opinion). Similarly, dragging my finger to the
> LEFT on a laptop's trackpad scrolls the window to the left but the
> columns are actually scrolled right.
Looks good to me. With the Ctrl+scrollwheel changes, I was able to test
this by mapping <C-ScrollWheel{Up|Down}> to <ScrollWheel{Left|Right}>
and it seems to work fine in both term and GTK2.
The only thing I might change would be the symmetry of using 3 for the
default increment. Maybe 5 or 10 would be better for horizontal
scrolling? (With the default, horizontal scrolling seems much slower
than vertical scrolling.)
> It is still possible to use <MouseUp> as a synonym for
> <ScrollWheelDown>, and to use <MouseDown> as a synonym for
> <ScrollWheelUp>. I've updated all the help docs to reflect these
> changes.
The new list of the default keys seems very cluttered with the tags
listed all on one line. The old layout also had the benefit of ':help
<S-MouseUp>', etc. jumping to exactly the right line.
> Oh, and I realized that the GTK patch had the left/right mixed up due
> to the previously weird behavior where up/down left/right were
> inverted. It should be right now (still nobody with a working
> horizontal wheel/trackpad that is willing to test this?).
I'll check to see whether either of my touchpads support horizontal
scrolling when I get home tonight.
--
Best,
Ben
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php