Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #6809 from NejcZdovc/hotfix/#6033-dnd-tabs
Browse files Browse the repository at this point in the history
Fixed dnd for tabs
  • Loading branch information
bbondy authored Jan 22, 2017
2 parents e22b87c + 2241a04 commit e642b2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/dnd.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports.onDragOver = (dragType, sourceBoundingRect, draggingOverKey, drag

e.preventDefault()
e.dataTransfer.dropEffect = 'move'
// Otherise, only accept it if we have some frameProps
// Otherwise, only accept it if we have some frameProps
if (!dndData.hasDragData(e.dataTransfer, dragType)) {
windowActions.setIsBeingDraggedOverDetail(dragType, draggingOverKey, {
draggingOverLeftHalf: false,
Expand Down
2 changes: 1 addition & 1 deletion js/dndData.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
const Immutable = require('immutable')

module.exports.hasDragData = (dataTransfer, dragType) => {
return !!dataTransfer.getData(`application/x-brave-${dragType}`)
return dataTransfer.types.includes(`application/x-brave-${dragType}`)
}

module.exports.getDragData = (dataTransfer, dragType) => {
Expand Down

0 comments on commit e642b2d

Please sign in to comment.