Fix regression in hovered dock tracking due to workspace refactor

Also, backfill tests for showing, hiding and updating the dock toggle
buttons in response to mouse movements.
This commit is contained in:
Max Brunsfeld
2017-04-10 14:15:31 -07:00
parent 3292e3b4df
commit 399b70662d
4 changed files with 188 additions and 32 deletions

View File

@@ -328,13 +328,6 @@ module.exports = class Workspace extends Model {
this.getCenter().activate()
}
setHoveredDock (hoveredDock) {
this.hoveredDock = hoveredDock
_.values(this.paneContainers).forEach(dock => {
dock.setHovered(dock === hoveredDock)
})
}
setDraggingItem (draggingItem) {
_.values(this.paneContainers).forEach(dock => {
dock.setDraggingItem(draggingItem)