mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-29 09:43:56 -07:00
; Add commentary to w32inevt.c
* src/w32inevt.c (do_mouse_event): Comment on mouse coordinates in console mouse-wheel events.
This commit is contained in:
parent
a5ca89d35c
commit
03921902b2
1 changed files with 6 additions and 0 deletions
|
|
@ -534,6 +534,12 @@ do_mouse_event (MOUSE_EVENT_RECORD *event,
|
|||
case MOUSE_HWHEELED:
|
||||
{
|
||||
struct frame *f = get_frame ();
|
||||
/* Mouse positions in console wheel events are reported to
|
||||
ReadConsoleInput relative to the display's top-left
|
||||
corner(!), not relative to the origin of the console screen
|
||||
buffer. This makes these coordinates unusable; e.g.,
|
||||
scrolling the tab-line in general doesn't work.
|
||||
FIXME (but how?). */
|
||||
int mx = event->dwMousePosition.X, my = event->dwMousePosition.Y;
|
||||
bool down_p = (event->dwButtonState & 0x10000000) != 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue