zevlg / telega.el

GNU Emacs telegram client (unofficial)
https://zevlg.github.io/telega.el/
GNU General Public License v3.0
1.09k stars 85 forks source link

Input Area Placement Issue When Using `pixel-scroll-precision-mode` #442

Closed LuciusChen closed 9 months ago

LuciusChen commented 9 months ago

When I enable pixel-scroll-precision-mode and perform multiple scroll actions within the telega-chatbuf using the mouse, a problem arises. After returning to the input area with M-g r and moving the cursor to reply to a message by pressing r, the input area will be placed so low that it gets covered by the modeline. Disabling pixel-scroll-precision-mode resolves the problem. Additionally, even if I don't reply to anyone's message and just send a new message separately, when I start typing again, the input area can still be placed so low that it gets obscured by the modeline. I suspect this issue may be related to pixel-scroll-precision-mode causing the content not to scroll by line, which results in inaccurate height calculations by Telega.

Telega Setup

OS: macOS Ventura 13.6.1 Emacs: GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin22.6.0, NS appkit-2299.70 Version 13.6.1 (Build 22G313)) Telega: telega v0.8.203 (TDLib v1.8.20-dd77e46) (telega-server v0.8.2)

Current Behavior

The input area is placed too low, causing it to be covered by the modeline.

Steps to Reproduce

  1. Enable pixel-scroll-precision-mode.
  2. Scroll multiple times in the telega-chatbuf using the mouse.
  3. Use M-g r to return to the input area.
  4. Attempt to reply to a message by pressing r.

Possible Solution

I suspect this issue may be related to pixel-scroll-precision-mode causing the content not to scroll by line, which results in inaccurate height calculations by Telega.