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

Smooth scrolling [Enhancement] #1781

Closed
ReneFroger opened this issue May 31, 2015 · 16 comments
Closed

Smooth scrolling [Enhancement] #1781

ReneFroger opened this issue May 31, 2015 · 16 comments
Labels
Enhancement ☺ Ready for work stale marked as a stale issue/pr (usually by a bot)

Comments

@ReneFroger
Copy link

Smooth scroll plugin.

With the following settings:

( require 'smooth-scroll                        ) ;; Smooth scroll 
( smooth-scroll-mode 1                          ) ;; Enable it 
( setq smooth-scroll/vscroll-step-size 5        ) ;; Set the speed right

Try scroll option, or with page-up and page-down. It gives

I believe this is a big improvement. Because when I'm scrolling, I have difficulties to recognize in which way the file was scrolling and where I exactly am. This package helps me with that.

@tuhdo
Copy link
Contributor

tuhdo commented May 31, 2015

We had a PR a while ago: #1670

But thank you 👍

@syl20bnr
Copy link
Owner

syl20bnr commented Jun 5, 2015

We are using smooth-scrolling plugin, is this really the same thing as smooth-scroll ?

@sooheon
Copy link

sooheon commented Jun 7, 2015

Just tested it. They address different issues. The smooth-scrolling we have currently is like vim's scrolloff margin feature, which lets you scroll off screen without the cursor jumping to the center of the screen. smooth-scroll is literally a smoother (graphically), non-instantaneous scroll. Therefore, it cannot replace smooth-scrolling, but it could be an addition for those who want it. Personally I could take it or leave it, this is what I added to my config to make it work if @ReneFroger wants to improve and submit a layer:

(defun sooheon/init-smooth-scroll ()
  (use-package smooth-scroll
    :defer
    :init
    (progn
      (require 'smooth-scroll)
      (smooth-scroll-mode 1)
      (setq smooth-scroll/vscroll-step-size 5))))

@tuhdo
Copy link
Contributor

tuhdo commented Jun 7, 2015

@sooheon you are right. I've tested it. It works nicely even on large file. I think this would make a user friendly addition for new comers.

@ReneFroger Thank you for this awesome suggestion. Sorry for not testing it and jump to the conclusion so quickly.

@ReneFroger
Copy link
Author

@tuhdo it's not a problem, I was surprised by your first comment, because I considered smooth-scroll to provide much more smooth scrolling than smooth-scrolling. But glad to read that you like it.

By the way, everyone, when you compare it with his Vim counterpart Smooth Scroll , it's even actually bad.

Let me demonstrate it for you:

https://www.youtube.com/watch?v=GCwZnBgR4DM

I couldn't figure out how I could get the scrolling in Emacs so nicely as in Vim. Especially when you tap the scroll action multiple times in row, there is a noticable lag with it in Emacs, while you don't get the lag in Vim.

@tuhdo
Copy link
Contributor

tuhdo commented Jun 8, 2015

@ReneFroger If you want Emacs scroll faster, try setting smooth-scroll/vscroll-step-size to 10 or higher.

@ReneFroger
Copy link
Author

Yes, I'm aware of that. But that's not the problem. It's not so smooth as in Vim, you will notice Emacs scrolls line for line. The scroll configuration in Vim doesn't that.

@sooheon
Copy link

sooheon commented Jun 9, 2015

That I think is a limitation of emacs, at least from my experience with cocoa emacs on OS X. Even scrolling with the trackpad gives linewise scroll.

@syl20bnr
Copy link
Owner

syl20bnr commented Jun 9, 2015

For reference I mention here that there is pixel based scrolling with homebrew-emacsmacport version. There is even support for swipe gesture to switch buffer. Very nice version on OS X and one of the ingredients that make some users switch to emacs.

@Profpatsch
Copy link
Contributor

I have the following in my config:

  ;;; scroll one line at a time (less "jumpy" than defaults)
  (setq mouse-wheel-scroll-amount '(2 ((shift) . 1))) ;; two lines at a time
  (setq mouse-wheel-progressive-speed nil) ;; don't accelerate scrolling
  (setq mouse-wheel-follow-mouse 't) ;; scroll window under mouse

Works reasonably well.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
@Profpatsch
Copy link
Contributor

yeah

@ReneFroger
Copy link
Author

Any status of this?

@nixmaniack
Copy link
Contributor

I guess someone needs to make a PR!

@duianto duianto removed the stale marked as a stale issue/pr (usually by a bot) label Mar 15, 2020
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Mar 15, 2021
syl20bnr added a commit that referenced this issue Mar 21, 2021
@syl20bnr
Copy link
Owner

PR opened: #14542

syl20bnr added a commit that referenced this issue Mar 24, 2021
syl20bnr added a commit that referenced this issue Mar 26, 2021
duianto pushed a commit that referenced this issue Mar 27, 2021
wang-d pushed a commit to wang-d/spacemacs that referenced this issue Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ☺ Ready for work stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants