iamcco / iamcco/markdown-preview.nvim

[Feature Request] Option to disable smooth scrolling

Open
#620 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
411
PR merge metrics
No merged PRs in 30d

Description

It'll be great to have an option to disable smooth scrolling. I honestly quite dislike smooth scrolling, and am sure many others feel the same way.

I see smooth scrolling is implemented in .

Here's a userscript to disable it for now:

```javascript
// ==UserScript==
// @name No Animation Markdown Preview
// @namespace Violentmonkey Scripts
// @match http://localhost:8642/*
// @grant none
// @version 1.0
// @author -
// @description 27/11/2023, 01:23:59
// ==/UserScript==

function main() {
const prevTo = TweenLite.to
TweenLite.to = function(target, duration, vars) {
prevTo(target, 0, vars)
}
}

main()
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.