unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Juri Linkov <juri@linkov.net>, Eli Zaretskii <eliz@gnu.org>
Cc: adam@alphapapa.net, emacs-devel@gnu.org
Subject: Re: tab-bar: Defining another mouse-button binding?
Date: Sat, 11 Sep 2021 10:39:01 +0200	[thread overview]
Message-ID: <9d435ece-ea6c-5459-2471-8fc0001520e1@gmx.at> (raw)
In-Reply-To: <87v938e80k.fsf@mail.linkov.net>

 >> The real message text is
 >>
 >>    <nil> <wheel-down> is undefined
 >>
 >> and similarly for wheel-up.
 >
 > Thanks for clarification.  Actually, there is already such bindings:
 >
 >      (define-key map [wheel-up]    'tab-previous)
 >      (define-key map [wheel-down]  'tab-next)
 >
 > So the problem is that it emits <nil> instead of <tab-bar>.
 > And as I understand, the same <nil> is emitted on the tab-line
 > instead of <tab-line> on GUI frames and on TTY frames.

With mouse wheel scrolls one has to be always prepared that the scroll
is intended for one window while the mouse is positioned anywhere on
your frame.  ISTR a problem with multiple Windows windows - I had an
external application that determined which window it should scroll from
the position of the mouse and the nearest scroll bar widget it found.
Something like `mouse-wheel-follow-mouse' on a widget base ...  Windows
without scroll bar lost in this regard.

BTW `mouse-wheel-down-event' and `mouse-wheel-up-event' are customizable
so it should work by setting these to mouse-4 and mouse-5.

martin



  parent reply	other threads:[~2021-09-11  8:39 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-07  9:37 tab-bar: Defining another mouse-button binding? Adam Porter
2021-09-08 18:12 ` Juri Linkov
2021-09-08 19:00   ` Adam Porter
2021-09-08 19:23     ` Juri Linkov
2021-09-09  7:53     ` Juri Linkov
2021-09-09 17:28       ` Eli Zaretskii
2021-09-09 18:58         ` Juri Linkov
2021-09-09 19:15           ` Eli Zaretskii
2021-09-09 19:19             ` Juri Linkov
2021-09-09 19:38               ` Eli Zaretskii
2021-09-10  6:36                 ` Juri Linkov
2021-09-10  7:05                   ` Eli Zaretskii
2021-09-10 16:19                     ` Juri Linkov
2021-09-10 17:59                       ` Eli Zaretskii
2021-09-11  8:39                       ` martin rudalics [this message]
2021-09-11  9:39                         ` Eli Zaretskii
2021-09-11 11:03                           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9d435ece-ea6c-5459-2471-8fc0001520e1@gmx.at \
    --to=rudalics@gmx.at \
    --cc=adam@alphapapa.net \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).