Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions modules/ui/pixel-scroll/README.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#+TITLE: ui/pixel-scroll
#+DATE: December 11, 2021
#+SINCE: v3.0
#+STARTUP: inlineimages

* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]

* Description
This module enables pixel-based smooth scrolling.

** Module Flags
This module provides no flags.

** Plugins
+ [[https://github.com/io12/good-scroll.el][good-scroll]] (emacs-major-version < 29 and not emacs-mac)
9 changes: 9 additions & 0 deletions modules/ui/pixel-scroll/config.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
;;; ui/pixel-scroll/config.el -*- lexical-binding: t; -*-

(if (boundp 'mac-mouse-wheel-smooth-scroll)
(setq mac-mouse-wheel-smooth-scroll t)
(if (> emacs-major-version 28)
(pixel-scroll-precision-mode)
(use-package! good-scroll
:config
(good-scroll-mode 1))))
5 changes: 5 additions & 0 deletions modules/ui/pixel-scroll/packages.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
;; -*- no-byte-compile: t; -*-
;;; ui/pixel-scroll/packages.el

(when (not (or (> emacs-major-version 28) (boundp 'mac-mouse-wheel-smooth-scroll)))
(package! good-scroll :pin "8530d6697b15e0"))