Coder Social home page Coder Social logo

danielboxer / vscroll Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 1.0 20 KB

Smooth middle mouse button scrolling for VS Code or any other application

License: GNU General Public License v3.0

AutoHotkey 100.00%
autohotkey mouse scroll scrolling smooth-scrolling vscode

vscroll's Introduction

๐Ÿ™‚

vscroll's People

Contributors

danielboxer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dmetivie

vscroll's Issues

Does not work corretly when code.exe window is not maximized

Make VS Code window not maximized, rather smaller.

  1. I have tried the script, but the symbol mode was to much on the right - out of the window.
  2. So, I have commented out the first CoordMode, line 40. Then the symbol was on the right place. But when I have scrolled to the very end of a file, released middle button, press it again - symbol is on the right place, but I cannot scroll up.

Note: https://github.com/qooqu/vs-code-mbutton-scroll-ahk/blob/main/script.ahk is working well.

Incorrect work on multi-monitor configurations.

If there are two monitors, the script works fine on the main monitor and does not work on the other monitor.

The icon with arrows is displayed as pressed to the left edge, scrolling does not occur.

Windows 11
AutohotKey 1.1.34.03

image

Mouse click should cancel scroll mode

Watching Firefox, when in scroll mode (after MButton click), then:

  • MButton click cancels scroll mode.
  • LButton click cancels scroll mode, while original event does not proceed.
  • RButton click cancels scroll mode, while original event does proceed (i.e. context menu is shown.)

Also, changing focus out of Firefox cancels scroll mode. Maybe detecting focus change is hard in Autohotkey, so IMO it's enough implement scroll mode cancelling on mouse click even when outside of VS Code.

E.g. do MButton click in VS Code, then Alt+Tab change to another app - I still see the scroll symbol and cannot cancel that. I have to return to VS Code to cancel it (by MButton only).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.