Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Restrict drag-and-drop actions to events from the Tree View #1293
Description of the Change
Previously, the Tree View would respond to all items dragged over it, irrespective of whether or not any action could be performed with said item. This would result in the illusion of being able to drop anything onto the Tree View, whereas in reality the drop action wouldn't do anything.
With this PR, the Tree View only responds when it knows that it can handle the event.
(Note: you'll notice that an empty pane is still created. Fixed in atom/tabs#550)
There are two benefits.
In the unlikely event that someone was using the
atom/tabs#539, which prior to this PR was not working correctly when a tab was dragged over the Tree View as it was preventing any drag-and-drop events from propagating up to the tabs package.