Closed pavelbraginskiy closed 2 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 2.16%. Comparing base (
7e572e1
) to head (b99df8a
). Report is 6 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Previously I implemented the ability to drag files onto MML using
DropTarget
. This worked, but it caused various cosmetic problems, most notably where the mouse cursor would often be wrong when dragging an item, showing the Forbidden cursor when a drop actually was possible.This moves the code from
DropTarget
toTransferHandler
.TransferHandler
is more capable thanDropTarget
and works much better here.Other than moving the code from
DropTarget
toTransferHandler
, this PR doesn't actually change any code except to show the user an error message when they try to drag an invalid file onto MML.