Skip to content

Drag & Drop not working on macOS and Windows #70

@s1hofmann

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));
})();

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