Giter VIP home page Giter VIP logo

Comments (13)

The-MAZZTer avatar The-MAZZTer commented on May 8, 2024 5

I have a fix. In %LOCALAPPDATA%\macintosh\app-1.0.2\resources\app\src\renderer\input.js line 46-47 change

    mouseMoveX += inputEvent.dx;
    mouseMoveY += inputEvent.dy;

to

    mouseMoveX = inputEvent.dx;
    mouseMoveY = inputEvent.dy;

It looks like the problem is the JS was taking mousemove events and using the absolute mouse position as a delta (hence the names dx and dy). The developer may have been confused by the mousemove event data variable names "offsetX/Y" which refers to the location of the mouse cursor in a DOM element (eg location offset to the element location) NOT offset from previous mouse location.

from macintosh.js.

jonathanpotts avatar jonathanpotts commented on May 8, 2024 3

Submitted change via PR #30

from macintosh.js.

aaron-trout avatar aaron-trout commented on May 8, 2024 2

This happens for me as well on a MacBook Pro running the latest MacOS 11 public beta (11.0 Beta (20A4300b)).

from macintosh.js.

keyvez avatar keyvez commented on May 8, 2024

For me, it's happening when drawing in Photoshop. Great app btw. Loving it!!!!!

from macintosh.js.

AyrA avatar AyrA commented on May 8, 2024

Same issue on a Windows 10 host. Seems like some kind of factor is occasionally applied to the axis depending on how big X and Y are.

from macintosh.js.

OptimisticMonkey avatar OptimisticMonkey commented on May 8, 2024

same issue

from macintosh.js.

doomchild avatar doomchild commented on May 8, 2024

Same problem. It seems like moving very slowly makes it happen slightly less.

from macintosh.js.

win9x-se avatar win9x-se commented on May 8, 2024

Same problem here as well

from macintosh.js.

johnblommers avatar johnblommers commented on May 8, 2024

Running version 1.04 on Ubuntu 20.04 and MATE. I'm seeing two cursors. They converge at the top left hand side of the window and they diverge more and more as the cursor moves further down and to the right.

from macintosh.js.

The-MAZZTer avatar The-MAZZTer commented on May 8, 2024

@johnblommers That is what I am seeing on Windows 10 so this sounds like a cross-platform issue.

When moving the cursor it rapidly moves between three points. The location that matches the real mouse location, and then two spots 2x and 3x the distance from the top left corner. When you stop moving the mouse the cursor may settle into any of these locations.

from macintosh.js.

johnblommers avatar johnblommers commented on May 8, 2024

Excellent. On Linux the offending file is at:

/usr/lib/macintosh.js/resources/app/src/renderer/input.js

The same edit as cited above fixes the problem. At lines 46-47:

    mouseMoveX = inputEvent.dx;
    mouseMoveY = inputEvent.dy;

from macintosh.js.

linguanostra avatar linguanostra commented on May 8, 2024

Working great, on macOS the offending file is at:

/Applications/macintosh.js.app/Contents/Resources/app/src/renderer/input.js

from macintosh.js.

maxpereira avatar maxpereira commented on May 8, 2024

@The-MAZZTer your fix worked for me experiencing the same issue on Windows 10 (2004).

from macintosh.js.

Related Issues (20)

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.