Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Reset drag counts when dropping #851

Closed

Conversation

anderoonies
Copy link
Contributor

currently, behavior in Atom 1.7.4 looks like this:

bad-drag

after an entry is dropped on a directory, that directory can no longer become .selected on dragEnter events.

this PR resets the dragEventCounts value for that directory so that subsequent dragEnter events give it the .selected class.

good-drag

i'm having a hard time replicating the broken behavior in specs, which may have something to do with how drag events are being built

After an entry is dropped in a directory, reset that directories drag counts. The drag count is only decremented on a dragLeave event, which never happens with onDrop events.
@Ben3eeE
Copy link
Contributor

Ben3eeE commented May 30, 2016

Noticed this bug when testing #793. Tested this PR and it fixes the problem for me.

@winstliu
Copy link
Contributor

@Ben3eeE was this fixed by #1179?

@Ben3eeE
Copy link
Contributor

Ben3eeE commented Feb 24, 2018

@50wliu i think so. I don't see this bug any longer.

@winstliu winstliu closed this Jul 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants