mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-24 03:25:03 +03:00
Rename
This commit is contained in:
parent
97eb7c8e49
commit
6b5edb99cf
@ -13,7 +13,7 @@ import Cocoa
|
||||
|
||||
class DraggingSingleRowStackView: NSStackView {
|
||||
var isDraggingEnabled = true
|
||||
var postDraggingAction: ((NSStackView) -> Void)?
|
||||
var postDraggingHandler: ((NSStackView) -> Void)?
|
||||
|
||||
override func mouseDragged(with event: NSEvent) {
|
||||
guard self.isDraggingEnabled else {
|
||||
@ -24,7 +24,7 @@ class DraggingSingleRowStackView: NSStackView {
|
||||
let location = convert(event.locationInWindow, from: nil)
|
||||
if let dragged = views.first(where: { $0.hitTest(location) != nil }) {
|
||||
self.reorder(view: dragged, event: event)
|
||||
self.postDraggingAction?(self)
|
||||
self.postDraggingHandler?(self)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -95,7 +95,7 @@ extension TabBar {
|
||||
stack.autoPinEdge(toSuperviewEdge: .bottom)
|
||||
|
||||
stack.spacing = self._theme.tabSpacing
|
||||
stack.postDraggingAction = { stackView in
|
||||
stack.postDraggingHandler = { stackView in
|
||||
let endIndex = stackView.arrangedSubviews.endIndex - 1
|
||||
stackView.arrangedSubviews.enumerated().forEach { index, view in
|
||||
guard let tab = view as? Tab<Entry> else { return }
|
||||
|
Loading…
Reference in New Issue
Block a user