Skip to content

Drag & Drop not working on macOS and Windows #70

Description

@s1hofmann

Version
1.1.2

Short overview
nut.js does not properly perform drag & drop gestures on macOS and Windows

Detailed error description
While the mouse correctly moves from source to target, it does not keep the button state and therefore performs just a move, not a drag.

Steps to reproduce error

const {mouse, screen, straightTo, centerOf, right} = require("@nut-tree/nut-js");

(async () => {
  screen.config.resourceDirectory = "$resourceFolder";
  await mouse.move(straightTo(centerOf(screen.find("$image"))));
  await mouse.drag(right(1000));
})();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

DONEImplementation is done, but not yet merged into masterbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions