Enter-tainer / typst-preview

[DEPRECATED] Use tinymist instead

Home Page:https://Enter-tainer.github.io/typst-preview/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sensitive scrolling

AlexKrachun opened this issue · comments

Describe the bug
A clear and concise description of what the bug is.
In vscode I've cought extremely sensitive scrolling
To Reproduce
Steps to reproduce the behavior (Library test):

  1. Declare a rust test 'fn test_xxx() { ... }' or typescript test 'it_should(function () { ... })'
  2. Execute test function
  3. See error

Or (Shell code):

  1. Attach necessary resources to execute shell code
  2. Put down some shell code 'cargo run --bin typst-ts-cli -- ...'
  3. Execute shell code
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Package/Software version:

VSCode version(Help -> About):

Version: 1.81.1
Commit: 6c3e3dba23e8fadc360aed75ce363ba185c49794
Date: 2023-08-09T22:18:39.991Z
Electron: 22.3.18
ElectronBuildId: 22689846
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Linux x64 6.4.12-x64v4-xanmod1

typst-preview extension version: v0.7.3

Logs:

typst-preview server log(Output Panel -> typst-preview):


typst-preview client log(Help -> Toggle Developer Tools -> Console):


Additional context
Add any other context about the problem here.

What do you mean by "sensitive scrolling"?

i think it's a known issue

image

I just did some test on my macbook pro and it seems that the touchpad will send events at a very high speed (maybe at framerate). Maybe we can keep a distance and only trigger scale once when the target distance is reached