Skip to content

#237 causes over-class "flickering" when drop target has child elements (Chrome) #332

@darynmitchell

Description

@darynmitchell

Anyone else find that #237 has introduced flickering when moving around inside the drag target?

I make the drop target background color different when dragging, and I'm seeing lots of flicker introduced.

My drop target is not just a div with simple text: Inside the drop target I've got an image, and a couple of styled divs of text. As far as I can tell, whenever dragging from the drop target background to now be over one of the child elements, the dragleave event is fired with event.currentTarget === the drop target, causing the over-class to be removed. The over-class is then immediately added back, resulting in flicker.

This did not happen in 1.1.1 when onDragLeave used to compare event.target instead of event.currentTarget.

Enviroment:
angular-file-upload 1.1.5
Windows 7, using Chrome v39 (FF + IE11 seem okay)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions