taye / taye/interact.js

Dragged objects are stuck to mouse after forced page focus change (e.g. taking a screenshot)

Open
#962 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
12.9k
Forks
804
PR merge metrics
No merged PRs in 30d

Description

Expected behavior

Dragged objects should only ever follow the mouse if the mouse is clicked. However, it seems that certain interactions (such as taking a screenshot while dragging) will put the object into an incorrect state where it's dragged around despite the mouse not being clicked.

Actual behavior

Object is "stuck" to mouse despite no click
20220407-230327-xK1P-chrome_rCiW

System configuration

interact.js version: latest
Browser name and version: Chrome, Firefox
Operating System: Windows

Additional Info

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on interactjs.io in Chrome or Firefox while taking a screenshot during a drag. Compare the interaction state before and after the forced focus change; done means the object stops following the pointer unless the mouse is pressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.