Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible incompatibility with eww #27

Open
ghost opened this issue Mar 16, 2018 · 2 comments
Open

Possible incompatibility with eww #27

ghost opened this issue Mar 16, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 16, 2018

Description

In eww, with smooth-scrolling-mode on, <backspace> (or, more accurately, scroll-down-command) does not seem work as I might expect when reaching the bottom of a page. If I turn smooth-scrolling-mode back off, <backspace> works again as expected.

Expected behavior

  1. Reach the bottom of a page
  2. Hit <backspace>
  3. Cursor moves up

Observed behavior

  1. Reach the bottom of a page
  2. Hit <backspace>
  3. Cursor moves up a few lines
  4. Hit <backspace> a few more times
  5. Cursor returns to where it was in step 3

What happens during step 4 changes depending on the page. Sometimes the cursor will move to the bottom of the page, sometimes it will disappear entirely from view. The cursor consistently, however, returns to where it was in step 3 after a certain number of <backspace> presses.

Environment

I have not changed any of my mappings for eww, nor any of my settings for smooth-scrolling (other than turning it on and off).

Here is the partial output of C-h k <backspace>:

DEL (translated from <backspace>) runs the command scroll-down-command
(found in eww-mode-map), which is an interactive compiled Lisp
function in ‘window.el’.

It is bound to <delete>, DEL, S-SPC, <prior>, M-v.

And here is the partial output of C-h k SPC:

SPC runs the command scroll-up-command (found in eww-mode-map), which
is an interactive compiled Lisp function in ‘window.el’.

It is bound to SPC, C-v, <next>.

Here is my testing system:

  • GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
  • Debian GNU/Linux 9.4 (stretch)
  • smooth-scrolling 20161002.1249 from MELPA
@ghost
Copy link
Author

ghost commented Mar 17, 2018

This does not seem to occur when I set smooth-scroll-margin to a low number, like 1 or 2. I actually find that I prefer this behavior over the default, so I will just set that in my init file. Attribution: I got the idea from #23; thanks.

@aspiers
Copy link
Owner

aspiers commented Apr 22, 2024

Thanks for the report and sorry for the very slow response. Please see #34 - would love to get your feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant